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

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Feb 19 15:00:51 CET 2010


Author: lolando
Date: 2010-02-19 15:00:51 +0100 (Fri, 19 Feb 2010)
New Revision: 8841

Modified:
   trunk/tests/func/Forums/forums.php
   trunk/tests/func/Tasks/createTask.php
Log:
Fixed Selenium tests (hopefully)

Modified: trunk/tests/func/Forums/forums.php
===================================================================
--- trunk/tests/func/Forums/forums.php	2010-02-19 13:49:23 UTC (rev 8840)
+++ trunk/tests/func/Forums/forums.php	2010-02-19 14:00:51 UTC (rev 8841)
@@ -136,7 +136,7 @@
 		$this->init();
 		$this->click("link=Mailing Lists");
 		$this->waitForPageToLoad("30000");
-		$this->click("//td[@id='main']/p[1]/strong/a");
+		$this->click("//body/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("//td[@id='main']/p[1]/strong/a[2]");
+		$this->click("//body/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-19 13:49:23 UTC (rev 8840)
+++ trunk/tests/func/Tasks/createTask.php	2010-02-19 14:00:51 UTC (rev 8841)
@@ -102,7 +102,7 @@
         $this->type("summary", "Task1: Hello Paris");
         $this->type("details", "Details: Hello Paris");
         $this->type("hours", "10");
-        $this->click("//td[@id='main']/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/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("//td[@id='main']/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/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("//td[@id='main']/form/table/tbody/tr[9]/td/input");
+        $this->click("//body/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