[Fusionforge-commits] r14550 - in branches/Branch_5_1: . tests/func/Search

Roland Mas lolando at fusionforge.org
Wed Oct 5 17:41:17 CEST 2011


Author: lolando
Date: 2011-10-05 17:41:17 +0200 (Wed, 05 Oct 2011)
New Revision: 14550

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/tests/func/Search/searchTest.php
Log:
Extended testsuite to try phrases

Modified: branches/Branch_5_1/tests/func/Search/searchTest.php
===================================================================
--- branches/Branch_5_1/tests/func/Search/searchTest.php	2011-10-05 15:41:08 UTC (rev 14549)
+++ branches/Branch_5_1/tests/func/Search/searchTest.php	2011-10-05 15:41:17 UTC (rev 14550)
@@ -46,7 +46,7 @@
 
 		$this->open(ROOT) ;
 		$this->waitForPageToLoad("30000");
-		$this->type("//input[@name='words']", "description projecta");
+		$this->type("//input[@name='words']", "description public projecta");
 		$this->click("//input[@name='Search']");
 		$this->waitForPageToLoad("30000");
 		$this->assertFalse($this->isTextPresent("No matches found for"));
@@ -55,12 +55,39 @@
 
 		$this->open(ROOT) ;
 		$this->waitForPageToLoad("30000");
-		$this->type("//input[@name='words']", "public description");
+		$this->type("//input[@name='words']", "description 'public projecta'");
 		$this->click("//input[@name='Search']");
 		$this->waitForPageToLoad("30000");
+		$this->assertTrue($this->isTextPresent("No matches found for"));
+		$this->assertFalse($this->isTextPresent("public description for ProjectA"));
+		$this->assertFalse($this->isTextPresent("public description for projectb"));
+
+		$this->open(ROOT) ;
+		$this->waitForPageToLoad("30000");
+		$this->type("//input[@name='words']", "description public");
+		$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->open(ROOT) ;
+		$this->waitForPageToLoad("30000");
+		$this->type("//input[@name='words']", "'description public'");
+		$this->click("//input[@name='Search']");
+		$this->waitForPageToLoad("30000");
+		$this->assertTrue($this->isTextPresent("No matches found for"));
+		$this->assertFalse($this->isTextPresent("public description for ProjectA"));
+		$this->assertFalse($this->isTextPresent("public description for projectb"));
+
+		$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"));
 	}
 
 	function testPeopleSearch()




More information about the Fusionforge-commits mailing list