From a114ff9d241bdc6bb3d23ff4c7753e423533e19d Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Mon, 2 Sep 2019 10:27:48 +0200 Subject: [PATCH] TT#56376 selenium: add missing alert check to ctr_customer controller_customer.t: - add missing check for one alert message Change-Id: I2d6564eddd51c5fc80f2fc1f44c4792ae1de5e77 --- t/selenium/controller_customer.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/selenium/controller_customer.t b/t/selenium/controller_customer.t index 8f9901d66a..c140158662 100644 --- a/t/selenium/controller_customer.t +++ b/t/selenium/controller_customer.t @@ -95,6 +95,8 @@ $d->find_element('//*[@id="status"]/option[contains(text(), "active")]')->click( $d->find_element('#save', 'css')->click(); diag("Search for Customer"); +$compstring = "Customer #" . $custnum . " successfully updated"; +is($d->find_element_by_xpath('//*[@id="content"]//div[contains(@class, "alert")]')->get_text(), $compstring, "Correct Alert was shown"); $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);