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 f86785d9f36c9f820fda0ed6ae45bc4a43028bf6 (commit)
from 818e0e345f0d4c9f2a5f28e65a7cf770853f9399 (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=f86785d9f36c9f820fda0ed6ae45bc4a43028bf6
commit f86785d9f36c9f820fda0ed6ae45bc4a43028bf6
Author: Franck Villaume <[email protected]>
Date: Tue Jan 15 10:25:37 2019 +0000
use byLinkText rather than javascript
diff --git a/tests/func/SeleniumForge.php b/tests/func/SeleniumForge.php
index 0c34383..131fdee 100644
--- a/tests/func/SeleniumForge.php
+++ b/tests/func/SeleniumForge.php
@@ -191,10 +191,10 @@ class FForge_SeleniumTestCase extends
PHPUnit_Extensions_Selenium2TestCase
}
public function clickAndWait($link) {
- $this->execute(array(
- 'script' =>
'document.querySelector(\'a[href*="'.$link.'"]\').click()',
- 'args' => array(),
- ));
+ if (preg_match('/^link=/', $link)) {
+ $text = substr($link, 5);
+ $this->byLinkText($link).click();
+ }
}
public function waitForTextPresent($text) {
-----------------------------------------------------------------------
Summary of changes:
tests/func/SeleniumForge.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits