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, 6.0 has been updated
via 7a975fc4354b9571ef3c12b59392604dd6b561f4 (commit)
from 2c9981c424ed68cc85826d03a3fb5e9c7ca3c2a6 (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=7a975fc4354b9571ef3c12b59392604dd6b561f4
commit 7a975fc4354b9571ef3c12b59392604dd6b561f4
Author: Roland Mas <[email protected]>
Date: Thu Mar 24 17:26:18 2016 +0100
Added tests for pagination in search results
diff --git a/tests/func/30_Search/searchTest.php
b/tests/func/30_Search/searchTest.php
index 2637255..a42eb16 100644
--- a/tests/func/30_Search/searchTest.php
+++ b/tests/func/30_Search/searchTest.php
@@ -98,6 +98,37 @@ class Search extends FForge_SeleniumTestCase
$this->assertTrue($this->isTextPresent("public description for
projectb"));
/*
+ * Test paging system
+ */
+ for ($i = 1; $i <= 30; $i++) {
+ $pname = sprintf("project-x%02d",$i);
+ $this->createProject($pname);
+ }
+
+ $this->open(ROOT) ;
+ $this->waitForPageToLoad("30000");
+ $this->type("//input[@name='words']", "'public description'");
+ $this->click("//input[@name='Search']");
+ $this->waitForPageToLoad("30000");
+ $this->assertFalse($this->isTextPresent("No matches found
for"));
+ $this->assertTrue($this->isTextPresent("public description for
ProjectA"));
+ $this->assertTrue($this->isTextPresent("public description for
projectb"));
+ $this->assertTrue($this->isTextPresent("public description for
project-x15"));
+ $this->assertFalse($this->isTextPresent("public description for
project-x30"));
+ $this->clickAndWait("link=Next Results");
+ $this->assertFalse($this->isTextPresent("public description for
project-x15"));
+ $this->assertTrue($this->isTextPresent("public description for
project-x30"));
+
+ $this->open(ROOT) ;
+ $this->waitForPageToLoad("30000");
+ $this->type("//input[@name='words']", "x15");
+ $this->click("//input[@name='Search']");
+ $this->waitForPageToLoad("30000");
+ $this->assertFalse($this->isTextPresent("No matches found
for"));
+ $this->assertTrue($this->isTextPresent("public description for
project-x15"));
+ $this->assertFalse($this->isTextPresent("public description for
projectb"));
+
+ /*
* Search for people
*/
-----------------------------------------------------------------------
Summary of changes:
tests/func/30_Search/searchTest.php | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits