[Fusionforge-commits] r15758 - in trunk: . tests/func/Docs tests/func/Forums tests/func/Search tests/func/Site tests/func/Tasks tests/func/Testing tests/func/Trackers

Roland Mas lolando at fusionforge.org
Tue Jun 12 11:12:44 CEST 2012


Author: lolando
Date: 2012-06-12 11:12:43 +0200 (Tue, 12 Jun 2012)
New Revision: 15758

Modified:
   trunk/
   trunk/tests/func/Docs/createDocURLTest.php
   trunk/tests/func/Forums/forumsTest.php
   trunk/tests/func/Search/searchTest.php
   trunk/tests/func/Site/projectsTest.php
   trunk/tests/func/Tasks/createTaskTest.php
   trunk/tests/func/Testing/SeleniumGforge.php
   trunk/tests/func/Trackers/trackersTest.php
Log:
Fix testsuite to cope with new page descriptions

Modified: trunk/tests/func/Docs/createDocURLTest.php
===================================================================
--- trunk/tests/func/Docs/createDocURLTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Docs/createDocURLTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -60,7 +60,7 @@
 		$this->clickAndWait("addItemDocmanMenu");
 		$this->click("buttonDoc");
 		$this->type("title", "My document");
-		$this->type("description", "L'année dernière à Noël, 3 < 4, 中国 \" <em>, père & fils");
+		$this->type("//input[@name='description']", "L'année dernière à Noël, 3 < 4, 中国 \" <em>, père & fils");
 		$this->click("//input[@name='type' and @value='pasteurl']");
 		$this->type("file_url", "http://buildbot.fusionforge.org/");
 		$this->clickAndWait("submit");

Modified: trunk/tests/func/Forums/forumsTest.php
===================================================================
--- trunk/tests/func/Forums/forumsTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Forums/forumsTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -137,7 +137,7 @@
 		$this->click("link=Add Mailing List");
 		$this->waitForPageToLoad("30000");
 		$this->type("list_name", "toto");
-		$this->type("description", "Toto mailing list");
+		$this->type("//input[@name='description']", "Toto mailing list");
 		$this->click("submit");
 		$this->waitForPageToLoad("30000");
 		$this->assertTrue($this->isTextPresent("List Added"));
@@ -148,7 +148,7 @@
 		$this->click("link=Add forum");
 		$this->waitForPageToLoad("30000");
 		$this->type("forum_name", "toto");
-		$this->type("description", "Toto forum");
+		$this->type("//input[@name='description']", "Toto forum");
 		$this->click("submit");
 		$this->waitForPageToLoad("30000");
 		$this->assertTrue($this->isTextPresent("Error: a mailing list with the same email address already exists"));

Modified: trunk/tests/func/Search/searchTest.php
===================================================================
--- trunk/tests/func/Search/searchTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Search/searchTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -364,7 +364,7 @@
 		$this->clickAndWait("addItemDocmanMenu");
 		$this->click("buttonDoc");
 		$this->type("title", "Doc1 Vladimir");
-		$this->type("description", "Jenkins buildbot - also, ZONGO");
+		$this->type("//input[@name='description']", "Jenkins buildbot - also, ZONGO");
 		$this->click("//input[@name='type' and @value='pasteurl']");
 		$this->type("file_url", "http://buildbot3.fusionforge.org/");
 		$this->clickAndWait("submit");
@@ -372,7 +372,7 @@
 		$this->clickAndWait("addItemDocmanMenu");
 		$this->click("buttonDoc");
 		$this->type("title", "Doc2 Astromir");
-		$this->type("description", "Hudson (the needle) - also, ZONGO");
+		$this->type("//input[@name='description']", "Hudson (the needle) - also, ZONGO");
 		$this->click("//input[@name='type' and @value='pasteurl']");
 		$this->type("file_url", "http://buildbot.fusionforge.org/");
 		$this->clickAndWait("submit");

Modified: trunk/tests/func/Site/projectsTest.php
===================================================================
--- trunk/tests/func/Site/projectsTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Site/projectsTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -59,7 +59,7 @@
 		$this->waitForPageToLoad("30000");
 		$this->type("full_name", "ProjectA");
 		$this->type("purpose", "This is a simple description for ProjectA");
-		$this->type("description", "This is the public description for ProjectA.");
+		$this->type("//textarea[@name='description']", "This is the public description for ProjectA.");
 		$this->type("unix_name", "projecta");
 		$this->click("//input[@name='scm' and @value='scmsvn']");
 		$this->assertTrue($this->isElementPresent("//select[@name='built_from_template']"));
@@ -91,7 +91,7 @@
 		$this->waitForPageToLoad("30000");
 		$this->type("full_name", "Project ' & B");
 		$this->type("purpose", "This is a & été simple description for project B");
-		$this->type("description", "This is & été the public description for project B.");
+		$this->type("//textarea[@name='description']", "This is & été the public description for project B.");
 		$this->type("unix_name", "projectb");
 		$this->click("//input[@name='scm' and @value='scmsvn']");
 		$this->click("submit");
@@ -156,7 +156,7 @@
 		$this->click("link=Trackers Admin");
 		$this->waitForPageToLoad("30000");
 		$this->type("name", "Local tracker for UNIXNAME");
-		$this->type("description", "Tracker for PUBLICNAME (UNIXNAME)");
+		$this->type("//input[@name='description']", "Tracker for PUBLICNAME (UNIXNAME)");
 		$this->click("post_changes");
 		$this->waitForPageToLoad("30000");
 		$this->assertTrue($this->isTextPresent("Tracker created successfully"));
@@ -196,7 +196,7 @@
 		$this->assertTrue($this->isElementPresent("//select[@name='built_from_template']"));
 		$this->type("full_name", "ProjectA");
 		$this->type("purpose", "This is a simple description for ProjectA");
-		$this->type("description", "This is the public description for ProjectA.");
+		$this->type("//textarea[@name='description']", "This is the public description for ProjectA.");
 		$this->type("unix_name", "projecta");
 		$this->select("//select[@name='built_from_template']", "label=Start from empty project");
 		$this->click("//input[@name='scm' and @value='scmsvn']");

Modified: trunk/tests/func/Tasks/createTaskTest.php
===================================================================
--- trunk/tests/func/Tasks/createTaskTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Tasks/createTaskTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -345,7 +345,7 @@
         $this->clickAndWait("link=Tasks Admin");
         $this->clickAndWait("link=Add a Subproject");
         $this->type("project_name", "public");
-        $this->type("description", "This is a public subproject");
+        $this->type("//input[@name='description']", "This is a public subproject");
         $this->clickAndWait("submit");
         $this->assertTextPresent("Subproject Inserted");
         $this->clickAndWait("link=Tasks");
@@ -362,7 +362,7 @@
         $this->clickAndWait("link=Add a Subproject");
         $this->click("//input[@name='is_public' and @value='0']");
         $this->type("project_name", "private");
-        $this->type("description", "This is a private subproject");
+        $this->type("//input[@name='description']", "This is a private subproject");
         $this->clickAndWait("submit");
         $this->assertTextPresent("Subproject Inserted");
         $this->clickAndWait("link=Tasks");

Modified: trunk/tests/func/Testing/SeleniumGforge.php
===================================================================
--- trunk/tests/func/Testing/SeleniumGforge.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Testing/SeleniumGforge.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -162,7 +162,7 @@
 			$this->click("link=Trackers Admin");
 			$this->waitForPageToLoad("30000");
 			$this->type("name", "Bugs");
-			$this->type("description", "Tracker for bug reports");
+			$this->type("//input[@name='description']", "Tracker for bug reports");
 			$this->click("post_changes");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Tracker created successfully"));
@@ -183,19 +183,19 @@
 			$this->click("link=Trackers Admin");
 			$this->waitForPageToLoad("30000");
 			$this->type("name", "Support Requests");
-			$this->type("description", "Tracker for support requests");
+			$this->type("//input[@name='description']", "Tracker for support requests");
 			$this->click("post_changes");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Tracker created successfully"));
 
 			$this->type("name", "Patches");
-			$this->type("description", "Proposed changes to code");
+			$this->type("//input[@name='description']", "Proposed changes to code");
 			$this->click("post_changes");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Tracker created successfully"));
 
 			$this->type("name", "Feature Requests");
-			$this->type("description", "New features that people want");
+			$this->type("//input[@name='description']", "New features that people want");
 			$this->click("post_changes");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Tracker created successfully"));
@@ -211,13 +211,13 @@
 			$this->click("link=Add a Subproject");
 			$this->waitForPageToLoad("30000");
 			$this->type("project_name", "To Do");
-			$this->type("description", "Things we have to do");
+			$this->type("//input[@name='description']", "Things we have to do");
 			$this->click("submit");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Subproject Inserted"));
 
 			$this->type("project_name", "Next Release");
-			$this->type("description", "Items for our next release");
+			$this->type("//input[@name='description']", "Items for our next release");
 			$this->click("submit");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Subproject Inserted"));
@@ -234,19 +234,19 @@
 			$this->click("link=Add forum");
 			$this->waitForPageToLoad("30000");
 			$this->type("forum_name", "Open-Discussion");
-			$this->type("description", "General Discussion");
+			$this->type("//input[@name='description']", "General Discussion");
 			$this->click("submit");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Forum added successfully"));
 
 			$this->type("forum_name", "Help");
-			$this->type("description", "Get Public Help");
+			$this->type("//input[@name='description']", "Get Public Help");
 			$this->click("submit");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Forum added successfully"));
 
 			$this->type("forum_name", "Developers-Discussion");
-			$this->type("description", "Project Developer Discussion");
+			$this->type("//input[@name='description']", "Project Developer Discussion");
 			$this->click("submit");
 			$this->waitForPageToLoad("30000");
 			$this->assertTrue($this->isTextPresent("Forum added successfully"));
@@ -349,7 +349,7 @@
 		$this->clickAndWait("link=Register Project");
 		$this->type("full_name", $name);
 		$this->type("purpose", "This is a simple description for $name");
-		$this->type("description", "This is the public description for $name.");
+		$this->type("//textarea[@name='description']", "This is the public description for $name.");
 		$this->type("unix_name", $unix_name);
 		$this->click("//input[@name='scm' and @value='$scm']");
 

Modified: trunk/tests/func/Trackers/trackersTest.php
===================================================================
--- trunk/tests/func/Trackers/trackersTest.php	2012-06-11 19:11:32 UTC (rev 15757)
+++ trunk/tests/func/Trackers/trackersTest.php	2012-06-12 09:12:43 UTC (rev 15758)
@@ -182,7 +182,7 @@
 		$this->click("//a[contains(@href,'".ROOT."/tracker/admin/')]");
 		$this->waitForPageToLoad("30000");
 		$this->type("name", "newTracker");
-		$this->type("description", "This is a new tracker");
+		$this->type("//input[@name='description']", "This is a new tracker");
 		$this->click("post_changes");
 		$this->waitForPageToLoad("30000");
 		$this->assertTrue($this->isTextPresent("Tracker created successfully"));




More information about the Fusionforge-commits mailing list