TT#56376 selenium: fix for crashes in controller_customer

controller_customer.t:
- fix crash when changing account status (idk why it did work for so long
without any issues tbh)

Change-Id: I1f91331db443bd50f147f21e8487fd500f3f4735
changes/53/31453/2
Nico Schedel 6 years ago
parent f77e463f94
commit 4cd1ae5002

@ -78,6 +78,11 @@ $d->scroll_to_element($d->find_element('//*[@id="status"]'));
$d->find_element('//*[@id="status"]/option[contains(text(), "locked")]')->click();
$d->find_element('#save', 'css')->click();
diag("Search for Customer");
$d->fill_element('#Customer_table_filter input', 'css', 'thisshouldnotexist');
ok($d->find_element_by_css('#Customer_table tr > td.dataTables_empty', 'css'), 'Garbage test not found');
$d->fill_element('#Customer_table_filter input', 'css', $customerid);
diag("Check if status has changed for customer");
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "successfully updated")]'), "Label 'Customer successfully updated' was shown");
ok($d->find_element_by_xpath('//*[@id="Customer_table"]/tbody/tr[1]/td[contains(text(), "locked")]'), 'Status has changed');

Loading…
Cancel
Save