[evolvis-commits] r18550: make it so that the site admin PW is the same after running this test

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Sep 14 17:30:44 CEST 2012


Author: mirabilos
Date: 2012-09-14 17:30:42 +0200 (Fri, 14 Sep 2012)
New Revision: 18550

Modified:
   trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php
Log:
make it so that the site admin PW is the same after running this test

Modified: trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php	2012-09-11 09:46:40 UTC (rev 18549)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php	2012-09-14 15:30:42 UTC (rev 18550)
@@ -2,6 +2,8 @@
 /*
  * Copyright (C) 2008 Alain Peyrat <aljeux at free.fr>
  * Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
+ * Copyright © 2012
+ *	Thorsten Glaser <t.glaser at tarent.de>
  *
  * This file is part of FusionForge.
  *
@@ -104,6 +106,7 @@
 		$this->assertTrue($this->isTextPresent("Site Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
 
+		// Test changing the password.
 		$this->clickAndWait("link=Site Admin");
 		$this->clickAndWait("link=Display Full User List/Edit Users");
 		$this->click("//table/tbody/tr/td/a[contains(@href,'useredit.php') and contains(.,'(admin)')]/../..//a[contains(@href, 'passedit.php?user_id=')]");
@@ -122,6 +125,18 @@
 		$this->waitForPageToLoad("30000");
 		$this->assertTrue($this->isTextPresent("Site Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
+
+		// Change the password back.
+		$this->clickAndWait("link=Site Admin");
+		$this->clickAndWait("link=Display Full User List/Edit Users");
+		$this->click("//table/tbody/tr/td/a[contains(@href,'useredit.php') and contains(.,'(admin)')]/../..//a[contains(@href, 'passedit.php?user_id=')]");
+		$this->waitForPageToLoad("30000");
+		$this->type("passwd", PHPUnit_Selenium);
+		$this->type("passwd2", PHPUnit_Selenium);
+		$this->clickAndWait("submit");
+		$this->logout();
+		$this->login(FORGE_ADMIN_USERNAME);
+		$this->assertTrue($this->isTextPresent("Site Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
 	}
 



More information about the evolvis-commits mailing list