TT#56376 selenium: change how empty inbound rule creation gets tested

controller_peering.t:
- check for a empty table instead of a error message now. the error message
can sometimes not show up, whick causes issues

Change-Id: I6683a276104827cef8a533bf065d0d50782807e3
changes/28/32628/2
Nico Schedel 6 years ago
parent 536935f754
commit d1eb508b69

@ -137,7 +137,7 @@ $d->find_element('//a[contains(text(),"Create Inbound Peering Rule")]')->click()
$d->find_element('#save', 'css')->click();
diag("Check if creation failed");
ok($d->find_element_by_xpath('//*[@id="content"]//div[contains(text(), "Failed to create inbound peering rule")]'), "Correct Alert was shown");
ok($d->find_element_by_css('#InboundPeeringRules_table tr > td.dataTables_empty', 'css'), 'Inbound Peering Rule was not created');
diag("Create Inbound Peering Rule");
$d->find_element('//a[contains(text(),"Create Inbound Peering Rule")]')->click();

Loading…
Cancel
Save