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  bc5d818ba046c5777c997691c5897361ff492f77 (commit)
      from  718321344faae292b3690cf3c64425a456372d86 (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=bc5d818ba046c5777c997691c5897361ff492f77

commit bc5d818ba046c5777c997691c5897361ff492f77
Author: Franck Villaume <[email protected]>
Date:   Sun Mar 24 19:05:00 2019 +0100

    Selenium2TestCase requires to clear the value before setting a new one

diff --git a/tests/func/SeleniumForge.php b/tests/func/SeleniumForge.php
index c29d4d9..96668cd 100644
--- a/tests/func/SeleniumForge.php
+++ b/tests/func/SeleniumForge.php
@@ -632,10 +632,13 @@ class FForge_SeleniumTestCase extends 
PHPUnit_Extensions_Selenium2TestCase
 
        function type($name, $value) {
                if (preg_match('/^\/\/[a-z]/', $name)) {
+                       $this->byXPath($name)->clear();
                        $this->byXPath($name)->value($value);
                } else if (preg_match('/^id=/', $name)) {
+                       $this->byId(substr($name, 3))->clear();
                        $this->byId(substr($name, 3))->value($value);
                } else {
+                       $this->byName($name)->clear();
                        $this->byName($name)->value($value);
                }
        }

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

Summary of changes:
 tests/func/SeleniumForge.php | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to