From d18eadaf76880b5a7736c257ea14a6f9d972d395 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Mon, 29 Jul 2019 11:49:02 +0200 Subject: [PATCH] TT#56376 clean up controller_other controller_other.t: - removed unintended my call - removed unnecessary search query Change-Id: Ic14519b349b468169face0d9fc757348c6874bf8 --- t/selenium/controller_other.t | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/t/selenium/controller_other.t b/t/selenium/controller_other.t index b7bb36ee44..1f0cbab0bc 100644 --- a/t/selenium/controller_other.t +++ b/t/selenium/controller_other.t @@ -133,7 +133,7 @@ ok($d->find_element_by_xpath('//*[@id="phonebook_table"]//tr[1]/td[contains(text ok($d->find_element_by_xpath('//*[@id="phonebook_table"]//tr[1]/td[contains(text(), "0123456789")]'), 'Number is correct'); diag('Edit Phonebook entry'); -my $phonebookname = ("phone" . int(rand(100000)) . "book"); +$phonebookname = ("phone" . int(rand(100000)) . "book"); $d->move_and_click('//*[@id="phonebook_table"]//tr[1]//td//a[contains(text(), "Edit")]', 'xpath', '//*[@id="phonebook_table_filter"]//input'); $d->fill_element('//*[@id="name"]', 'xpath', $phonebookname); $d->fill_element('//*[@id="number"]', 'xpath', '9876543210'); @@ -238,10 +238,6 @@ ok($d->find_element_by_xpath('//*[@id="contact_table"]//tr[1]/td[contains(text() ok($d->find_element_by_xpath('//*[@id="contact_table"]//tr[1]/td[contains(text(), "' . $contactmail . '")]'), 'Email is correct'); diag('Trying to NOT delete Contact'); -$d->fill_element('//*[@id="contact_table_filter"]/label/input', 'xpath', 'thisshouldnotexist'); -ok($d->find_element_by_css('#contact_table tr > td.dataTables_empty', 'css'), 'Garbage text was not found'); -$d->fill_element('//*[@id="contact_table_filter"]/label/input', 'xpath', $resellername); -ok($d->wait_for_text('//*[@id="contact_table"]//tr[1]/td[2]', $resellername), "Contact Found"); $d->move_and_click('//*[@id="contact_table"]//tr[1]//td//a[contains(text(), "Delete")]', 'xpath', '//*[@id="contact_table_filter"]//input'); $d->find_element('//*[@id="dataConfirmCancel"]')->click();