From 6c4fe4e99c58fd1bc66716434a98cdd3c656e67b Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Wed, 10 Apr 2019 13:16:30 +0200 Subject: [PATCH] TT#56376 selenium: Cleaner fraud limit check controller_customer.t: -Dropped unnecessary ok statements -Merged two lines to one Change-Id: I9f39123c1db9a89506460ed72ebd357100d77744 --- t/selenium/controller_customer.t | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/t/selenium/controller_customer.t b/t/selenium/controller_customer.t index 113b93d93f..4299bb9da5 100644 --- a/t/selenium/controller_customer.t +++ b/t/selenium/controller_customer.t @@ -115,11 +115,8 @@ my $elem = $d->find_element('//div[contains(@class,"accordion-heading")]//a[cont $d->scroll_to_element($elem); $elem->click(); $row = $d->find_element('//div[contains(@class,"accordion-body")]//table//tr/td[contains(text(),"Monthly Settings")]'); -ok($row, 'Changed monthly settings'); -$edit_link = $d->find_child_element($row, './../td//a[text()[contains(.,"Edit")]]'); -ok($edit_link); $d->move_action(element => $row); -$edit_link->click(); +$edit_link = $d->find_child_element($row, './../td//a[text()[contains(.,"Edit")]]')->click(); diag("Do Edit Fraud Limits"); $d->fill_element('#fraud_interval_limit', 'css', "100");