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

Roland Mas lolando at fusionforge.org
Tue Aug 2 19:56:26 CEST 2011


Author: lolando
Date: 2011-08-02 19:56:26 +0200 (Tue, 02 Aug 2011)
New Revision: 14053

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

Modified: branches/Branch_5_1/tests/func/RBAC/rbacTest.php
===================================================================
--- branches/Branch_5_1/tests/func/RBAC/rbacTest.php	2011-08-02 16:42:16 UTC (rev 14052)
+++ branches/Branch_5_1/tests/func/RBAC/rbacTest.php	2011-08-02 17:56:26 UTC (rev 14053)
@@ -228,7 +228,6 @@
 		$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->type ("//form[contains(@action,'globalroleedit.php')]//input[@name='form_unix_name']", "toto") ;
 		$this->click ("//input[@value='Add User']") ;
 		$this->waitForPageToLoad("30000");
@@ -248,6 +247,13 @@
 		$this->waitForPageToLoad("30000");
 		$this->click("link=Site Admin");
 		$this->waitForPageToLoad("30000");
+		$this->assertTrue($this->isElementPresent("//option[.='Temporary role']"));
+		$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 ("//input[@type='checkbox' and @name='sure']") ;
+		$this->click ("//input[@value='Delete role']") ;
+		$this->waitForPageToLoad("30000");
 		$this->assertFalse($this->isElementPresent("//option[.='Temporary role']"));
 	}
 




More information about the Fusionforge-commits mailing list