[Fusionforge-commits] r8849 - in trunk/tests/func: Forums Tasks

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Feb 23 09:01:10 CET 2010


Author: lolando
Date: 2010-02-23 09:01:10 +0100 (Tue, 23 Feb 2010)
New Revision: 8849

Modified:
   trunk/tests/func/Forums/forums.php
   trunk/tests/func/Tasks/createTask.php
Log:
Fixed Selenium tests after change of HTML structure

Modified: trunk/tests/func/Forums/forums.php
===================================================================
--- trunk/tests/func/Forums/forums.php	2010-02-22 20:36:30 UTC (rev 8848)
+++ trunk/tests/func/Forums/forums.php	2010-02-23 08:01:10 UTC (rev 8849)
@@ -136,7 +136,7 @@
 		$this->init();
 		$this->click("link=Mailing Lists");
 		$this->waitForPageToLoad("30000");
-		$this->click("//body/p[1]/strong/a");
+		$this->click("//body/div[@id='maindiv']/p[1]/strong/a");
 		$this->waitForPageToLoad("30000");
 		$this->click("link=Add Mailing List");
 		$this->waitForPageToLoad("30000");
@@ -149,7 +149,7 @@
 		$this->waitForPageToLoad("30000");
 		$this->click("link=open-discussion");
 		$this->waitForPageToLoad("30000");
-		$this->click("//body/p[1]/strong/a[2]");
+		$this->click("//body/div[@id='maindiv']/p[1]/strong/a[2]");
 		$this->waitForPageToLoad("30000");
 		$this->click("link=Add forum");
 		$this->waitForPageToLoad("30000");

Modified: trunk/tests/func/Tasks/createTask.php
===================================================================
--- trunk/tests/func/Tasks/createTask.php	2010-02-22 20:36:30 UTC (rev 8848)
+++ trunk/tests/func/Tasks/createTask.php	2010-02-23 08:01:10 UTC (rev 8849)
@@ -102,7 +102,7 @@
         $this->type("summary", "Task1: Hello Paris");
         $this->type("details", "Details: Hello Paris");
         $this->type("hours", "10");
-        $this->click("//body/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
         $this->waitForPageToLoad("30000");
         $this->assertTrue($this->isTextPresent("Task Created Successfully"));
 
@@ -112,7 +112,7 @@
         $this->type("summary", "Task2: Hello France");
         $this->type("details", "Details: Hello France");
         $this->type("hours", "15");
-        $this->click("//body/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
         $this->waitForPageToLoad("30000");
         $this->assertTrue($this->isTextPresent("Task Created Successfully"));
 
@@ -122,7 +122,7 @@
         $this->type("summary", "Task3: Hello World");
         $this->type("details", "Details: Hello World");
         $this->type("hours", "20");
-        $this->click("//body/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
         $this->waitForPageToLoad("30000");
         $this->assertTrue($this->isTextPresent("Task Created Successfully"));
     }




More information about the Fusionforge-commits mailing list