[Fusionforge-commits] r14051 - in branches/Branch_5_1: . tests/func/RBAC

Roland Mas lolando at fusionforge.org
Tue Aug 2 17:51:44 CEST 2011


Author: lolando
Date: 2011-08-02 17:51:44 +0200 (Tue, 02 Aug 2011)
New Revision: 14051

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/tests/func/RBAC/rbacTest.php
Log:
Testsuite fixes for role deletion

Modified: branches/Branch_5_1/tests/func/RBAC/rbacTest.php
===================================================================
--- branches/Branch_5_1/tests/func/RBAC/rbacTest.php	2011-08-02 15:50:13 UTC (rev 14050)
+++ branches/Branch_5_1/tests/func/RBAC/rbacTest.php	2011-08-02 15:51:44 UTC (rev 14051)
@@ -242,7 +242,7 @@
 		$this->select ("//form[contains(@action,'globalroleedit.php')]//select[@name='role_id']", "label=Temporary role") ;
 		$this->click ("//form[contains(@action,'globalroleedit.php')]//input[@value='Edit Role']") ;
 		$this->waitForPageToLoad("30000");
-		$this->click ("//a[contains(@href,'/users/trainee')]/../../td/input[@type='checkbox']") ;
+		$this->click ("//a[contains(@href,'/users/toto')]/../../td/input[@type='checkbox']") ;
 		$this->click ("//input[@name='reallyremove']") ;
 		$this->click ("//input[@name='dormusers']") ;
 		$this->waitForPageToLoad("30000");
@@ -542,7 +542,7 @@
 		$this->select("//input[@value='Add Member']/../select[@name='role_id']", "label=Temporary role");
 		$this->click ("//input[@value='Add Member']") ;
 		$this->waitForPageToLoad("30000");
-		$this->click ("//td/form/div[contains(.,'Temporary role')]/../div/input[@value='Delete role']") ;
+		$this->click ("//td/form/div[contains(.,'Temporary role')]/../../formdiv/input[@value='Delete role']") ;
 		$this->waitForPageToLoad("30000");
 		$this->click ("//input[@type='checkbox' and @name='sure']") ;
 		$this->click ("//input[@value='Submit']") ;




More information about the Fusionforge-commits mailing list