From d1eb508b692a23f7d001c7eb93408506142859f2 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Fri, 23 Aug 2019 09:53:02 +0200 Subject: [PATCH] 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 --- t/selenium/controller_peering.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/selenium/controller_peering.t b/t/selenium/controller_peering.t index 0279d57469..826d3628c5 100644 --- a/t/selenium/controller_peering.t +++ b/t/selenium/controller_peering.t @@ -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();