[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 165 Fixed Selenium tests.



Fixed some validation and synchronization problems in Selenium tests.

--
Endi S. Dewata
From a944a440bc42948a2037675118eff20d0c480c7f Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edewata redhat com>
Date: Tue, 24 May 2011 01:17:37 -0400
Subject: [PATCH] Fixed Selenium tests.

Fixed some validation and synchronization problems in Selenium tests.
---
 .../ui/test/functional/group-add-member-user.html  |    7 ++++++-
 .../test/functional/group-remove-member-user.html  |    2 +-
 .../{hostgroup-mod => hostgroup-mod.html}          |   10 ++++++++++
 install/ui/test/functional/hostgroup-suite.html    |    2 +-
 install/ui/test/functional/netgroup-mod.html       |    5 -----
 install/ui/test/functional/selfservice-add.html    |    2 +-
 6 files changed, 19 insertions(+), 9 deletions(-)
 rename install/ui/test/functional/{hostgroup-mod => hostgroup-mod.html} (94%)

diff --git a/install/ui/test/functional/group-add-member-user.html b/install/ui/test/functional/group-add-member-user.html
index a3d199baf4eef3d49f44d28f7107327b63bfa148..6eed3bfae997e030b51222651a8d86567a458230 100644
--- a/install/ui/test/functional/group-add-member-user.html
+++ b/install/ui/test/functional/group-add-member-user.html
@@ -62,7 +62,12 @@
 	<td></td>
 </tr>
 <tr>
-	<td>waitForElementPresent</td>
+	<td>waitForNotVisible</td>
+	<td>//span[ id='header-network-activity-indicator']</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyElementPresent</td>
 	<td>css=.entity[name='group'] .facet[name='member_user'] input[value='testuser']</td>
 	<td></td>
 </tr>
diff --git a/install/ui/test/functional/group-remove-member-user.html b/install/ui/test/functional/group-remove-member-user.html
index 8f653799ab17cea4f8761b7f819cab141c58e6da..411e8426d3ad141dda2c887a0b5098f7cc0a6098 100644
--- a/install/ui/test/functional/group-remove-member-user.html
+++ b/install/ui/test/functional/group-remove-member-user.html
@@ -57,7 +57,7 @@
 	<td></td>
 </tr>
 <tr>
-	<td>waitForElementNotPresent</td>
+	<td>verifyElementNotPresent</td>
 	<td>css=.entity[name='group'] .facet[name='member_user'] input[value='testuser']</td>
 	<td></td>
 </tr>
diff --git a/install/ui/test/functional/hostgroup-mod b/install/ui/test/functional/hostgroup-mod.html
similarity index 94%
rename from install/ui/test/functional/hostgroup-mod
rename to install/ui/test/functional/hostgroup-mod.html
index c93fa9869be5f840e75313a09bdff0e88d650210..173b0e31d067d99e0898de1cdf392bda977577bf 100644
--- a/install/ui/test/functional/hostgroup-mod
+++ b/install/ui/test/functional/hostgroup-mod.html
@@ -47,6 +47,11 @@
 	<td></td>
 </tr>
 <tr>
+	<td>type</td>
+	<td>description</td>
+	<td></td>
+</tr>
+<tr>
 	<td>typeKeys</td>
 	<td>description</td>
 	<td>xxx</td>
@@ -72,6 +77,11 @@
 	<td></td>
 </tr>
 <tr>
+	<td>type</td>
+	<td>description</td>
+	<td></td>
+</tr>
+<tr>
 	<td>typeKeys</td>
 	<td>description</td>
 	<td>Test Host Group</td>
diff --git a/install/ui/test/functional/hostgroup-suite.html b/install/ui/test/functional/hostgroup-suite.html
index 0f681c1c5bab96783210c33fac4258fd43ffe6d8..999e2751dc375a65d5dff440947cd2f0e3a9b8c9 100644
--- a/install/ui/test/functional/hostgroup-suite.html
+++ b/install/ui/test/functional/hostgroup-suite.html
@@ -10,7 +10,7 @@
 <tr><td><b>Test Suite</b></td></tr>
 <tr><td><a href="hostgroup-add.html">Add Host Group</a></td></tr>
 <tr><td><a href="hostgroup-find.html">Search Host Group</a></td></tr>
-<tr><td><a href="hostgroup-mod">Edit Host Group</a></td></tr>
+<tr><td><a href="hostgroup-mod.html">Edit Host Group</a></td></tr>
 <tr><td><a href="host-add.html">Add Host</a></td></tr>
 <tr><td><a href="hostgroup-add-member-host.html">Add Member Host</a></td></tr>
 <tr><td><a href="hostgroup-remove-member-host.html">Delete Member Host</a></td></tr>
diff --git a/install/ui/test/functional/netgroup-mod.html b/install/ui/test/functional/netgroup-mod.html
index f87b111e4c3d41efd88ba6ee77792e0e38ccd300..ac7bc128652118431258eef6a10c912c1c8d4ff5 100644
--- a/install/ui/test/functional/netgroup-mod.html
+++ b/install/ui/test/functional/netgroup-mod.html
@@ -67,11 +67,6 @@
 	<td>example.com</td>
 </tr>
 <tr>
-	<td>click</td>
-	<td>link=Update</td>
-	<td></td>
-</tr>
-<tr>
 	<td>verifyTextPresent</td>
 	<td>undo</td>
 	<td></td>
diff --git a/install/ui/test/functional/selfservice-add.html b/install/ui/test/functional/selfservice-add.html
index cbaefa794f8152758d315f56a2e51bcd3558b905..8551d3f6b99cd0366c2a62917704a0e39c363e4d 100644
--- a/install/ui/test/functional/selfservice-add.html
+++ b/install/ui/test/functional/selfservice-add.html
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
 <head profile="http://selenium-ide.openqa.org/profiles/test-case";>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="https://vm-022.idm.lab.bos.redhat.com/"; />
+<link rel="selenium.base" href="https://localhost/"; />
 <title>Add Self-Service Permission</title>
 </head>
 <body>
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]