TT#56376 selenium: fix crash when deleting header rule condition

controller_header.t:
- removed fill_element when checking if header rule condition was deleted,
since it isn't really necessary plus it causes problems with stale elements

Change-Id: I8e2c1ec89a0986531987b6fca07973104e18333f
changes/79/31879/3
Nico Schedel 6 years ago
parent c6d185d959
commit 7fe8a93a87

@ -215,7 +215,6 @@ $d->find_element('//*[@id="dataConfirmOK"]')->click();
diag('Check if Header Rule Condition was deleted'); diag('Check if Header Rule Condition was deleted');
is($d->get_text('//*[@id="content"]//div[contains(@class, "alert")]'), 'Header rule condition successfully deleted', "Correct Alert was shown"); is($d->get_text('//*[@id="content"]//div[contains(@class, "alert")]'), 'Header rule condition successfully deleted', "Correct Alert was shown");
$d->fill_element('//*[@id="header_rule_conditions_table_filter"]//input', 'xpath', $headercondition);
ok($d->find_element_by_css('#header_rule_conditions_table tr > td.dataTables_empty', 'css'), 'Header Rule Condition was deleted'); ok($d->find_element_by_css('#header_rule_conditions_table tr > td.dataTables_empty', 'css'), 'Header Rule Condition was deleted');
diag('Go to Header Rule Actions'); diag('Go to Header Rule Actions');

Loading…
Cancel
Save