From fceb579d6e95df9ba5a0efeaf56f76ff3b3b502e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 26 Apr 2011 01:26:36 -0400 Subject: Updated Selenium tests. The following test suites have been updated to use the new DOM structure: user, group, host, hostgroup, netgroup, service, HBAC. --- install/ui/test/functional/netgroup-mod.html | 58 ++++++++++++---------------- 1 file changed, 24 insertions(+), 34 deletions(-) (limited to 'install/ui/test/functional/netgroup-mod.html') diff --git a/install/ui/test/functional/netgroup-mod.html b/install/ui/test/functional/netgroup-mod.html index e61c16ab..f87b111e 100644 --- a/install/ui/test/functional/netgroup-mod.html +++ b/install/ui/test/functional/netgroup-mod.html @@ -13,7 +13,7 @@ open - /ipa/ui/#navigation=0&identity=4 + /ipa/ui/#navigation=identity&identity=netgroup @@ -23,7 +23,7 @@ verifyElementPresent - //div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup'] + css=.entity[name='netgroup'] .facet[name='search'] input[value='testnetgroup'] @@ -32,8 +32,18 @@ - waitForTextPresent - testnetgroup: + waitForNotVisible + //span[@id='header-network-activity-indicator'] + + + + click + link=Settings + + + + waitForNotVisible + //span[@id='header-network-activity-indicator'] @@ -62,33 +72,23 @@ - waitForTextNotPresent + verifyTextPresent undo click - //div[@id='netgroup']/div[1]/ul/li[1]/span - - - - waitForElementPresent - //div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup'] - - - - waitForElementPresent - //div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']/ancestor::tr//span[@name='description' and text()='xxx'] + link=Update - click - link=testnetgroup + waitForNotVisible + //span[@id='header-network-activity-indicator'] - waitForTextPresent - testnetgroup: + verifyTextNotPresent + undo @@ -112,18 +112,13 @@ idm.lab.bos.redhat.com - click - link=Update - - - - waitForTextNotPresent + verifyTextPresent undo click - //div[@id='netgroup']/div[1]/ul/li[1]/span + link=Update @@ -132,13 +127,8 @@ - verifyElementPresent - //div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup'] - - - - verifyElementPresent - //div[@id='netgroup']//span[@name='search']//input[@value='testnetgroup']/ancestor::tr//span[@name='description' and text()='Test Netgroup'] + verifyTextNotPresent + undo -- cgit