[Fusionforge-commits] FusionForge branch master updated. v6.1-186-g7128933

Franck Villaume nerville at libremir.placard.fr.eu.org
Sat Jan 19 10:46:12 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  71289334956c6fdcd5be7734d7fe6e9a52f4b442 (commit)
      from  f835f2fa5d66178f7fe3c15c1e0cda586cc69169 (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=71289334956c6fdcd5be7734d7fe6e9a52f4b442

commit 71289334956c6fdcd5be7734d7fe6e9a52f4b442
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Jan 19 10:45:44 2019 +0100

    make the first test to work :-)

diff --git a/tests/func/10_Site/loginTest.php b/tests/func/10_Site/loginTest.php
index b1b2f11..982a672 100644
--- a/tests/func/10_Site/loginTest.php
+++ b/tests/func/10_Site/loginTest.php
@@ -113,6 +113,7 @@ class LoginProcess extends FForge_SeleniumTestCase
 		$this->type("passwd", FORGE_OTHER_PASSWORD);
 		$this->type("passwd2", FORGE_OTHER_PASSWORD);
 		$this->clickAndWait("submit");
+		$this->assertContains('You have changed successfully the password', $this->source());
 
 		$this->logout();
 		$this->open( ROOT );
diff --git a/tests/func/SeleniumForge.php b/tests/func/SeleniumForge.php
index ef8de5b..475380b 100644
--- a/tests/func/SeleniumForge.php
+++ b/tests/func/SeleniumForge.php
@@ -193,13 +193,16 @@ class FForge_SeleniumTestCase extends PHPUnit_Extensions_Selenium2TestCase
 	public function clickAndWait($link) {
 		if (preg_match('/^link=/', $link)) {
 			$text = substr($link, 5);
-			$this->byLinkText($text)->click();
+			$myelement = $this->byLinkText($text);
 		} else if (preg_match('/^\/\/[a-z]/', $link)) {
-			$this->byXpath($link)->click();
+			$myelement = $this->byXpath($link);
 		} else {
 			//default case
-			$this->byName($link)->click();
+			$myelement = $this->byName($link);
 		}
+		$this->moveto($myelement);
+		sleep(6);
+		$myelement->click();
 	}
 
 	public function waitForTextPresent($text) {

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

Summary of changes:
 tests/func/10_Site/loginTest.php | 1 +
 tests/func/SeleniumForge.php     | 9 ++++++---
 2 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list