[Fusionforge-commits] FusionForge branch master updated. v6.1-169-gf6446da

Franck Villaume nerville at libremir.placard.fr.eu.org
Wed Jan 9 15:42:16 CET 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  f6446da22c7bb5556e0f164c2a682020ae350bca (commit)
      from  2f96f96f4634e63e3c708a9410a2c9d46539c0a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=f6446da22c7bb5556e0f164c2a682020ae350bca

commit f6446da22c7bb5556e0f164c2a682020ae350bca
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Jan 9 14:42:12 2019 +0000

    try with url vs. open

diff --git a/tests/func/10_Site/loginTest.php b/tests/func/10_Site/loginTest.php
index 595cb26..f722451 100644
--- a/tests/func/10_Site/loginTest.php
+++ b/tests/func/10_Site/loginTest.php
@@ -49,7 +49,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 	function testLogin()
 	{
 		// Test with a normal login.
-		$this->open( ROOT );
+		$this->url( ROOT );
 		if (!$this->isTextPresent("Log In")) {
 			$this->logout();
 		}
@@ -71,16 +71,16 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->clickAndWait("login");
 		$this->assertTrue($this->isTextPresent("Forge Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->assertTrue($this->isTextPresent("Forge Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
 		$this->logout();
-		$this->open( ROOT );
+		$this->url( ROOT );
 		// Verify that logout is succesful
 		$this->assertTrue($this->isTextPresent("Log In"));
 
 		// Test with an empty password.
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->clickAndWait("link=Log In");
 		$this->assertTrue($this->isTextPresent("Log In"));
 		$this->type("form_loginname", FORGE_ADMIN_USERNAME);
@@ -92,7 +92,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->assertTrue($this->isTextPresent("Log In"));
 
 		// Test with a wrong password.
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->clickAndWait("link=Log In");
 		$this->type("form_loginname", FORGE_ADMIN_USERNAME);
 		$this->type("form_pw", "awrongpassword");
@@ -114,7 +114,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->clickAndWait("submit");
 
 		$this->logout();
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->clickAndWait("link=Log In");
 		$this->type("form_loginname", FORGE_ADMIN_USERNAME);
 		$this->type("form_pw", FORGE_OTHER_PASSWORD);
@@ -139,7 +139,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->clickAndWait("submit");
 
 		$this->logout();
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->clickAndWait("link=Log In");
 		$this->type("form_loginname", FORGE_ADMIN_USERNAME);
 		$this->type("form_pw", FORGE_ADMIN_PASSWORD);
@@ -148,7 +148,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->assertTrue($this->isTextPresent("Log Out"));
 
 		// Test session expiration
-		$this->open( ROOT );
+		$this->url( ROOT );
 		if (!$this->isTextPresent("Log In")) {
 			$this->logout();
 		}
@@ -158,24 +158,24 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->clickAndWait("login");
 		$this->assertTrue($this->isTextPresent("Forge Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->assertTrue($this->isTextPresent("Forge Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
 		// Shorten session validity delay
 		$this->changeConfig(array("core" => array("session_expire" => "10")));
 		// Ensure session cookie is refreshed
 		sleep(5);
-		$this->open( ROOT );
+		$this->url( ROOT );
 		sleep(5);
-		$this->open( ROOT );
+		$this->url( ROOT );
 		sleep(5);
-		$this->open( ROOT );
+		$this->url( ROOT );
 		sleep(5);
 		$this->assertTrue($this->isTextPresent("Forge Admin"));
 		$this->assertTrue($this->isTextPresent("Log Out"));
 		// Now ensure that the session expires
 		sleep(15);
-		$this->open( ROOT );
+		$this->url( ROOT );
 		$this->assertFalse($this->isTextPresent("Forge Admin"));
 		$this->assertFalse($this->isTextPresent("Log Out"));
 	}

-----------------------------------------------------------------------

Summary of changes:
 tests/func/10_Site/loginTest.php | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list