[Fusionforge-commits] r14166 - in branches/Branch_5_1: . tests/func/Forums tests/func/Tasks

Roland Mas lolando at fusionforge.org
Thu Aug 18 14:58:57 CEST 2011


Author: lolando
Date: 2011-08-18 14:58:57 +0200 (Thu, 18 Aug 2011)
New Revision: 14166

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/tests/func/Forums/forumsTest.php
   branches/Branch_5_1/tests/func/Tasks/createTaskTest.php
Log:
Adapt XPath for themes where there are several layers of <div> inside the <body> element

Modified: branches/Branch_5_1/tests/func/Forums/forumsTest.php
===================================================================
--- branches/Branch_5_1/tests/func/Forums/forumsTest.php	2011-08-18 12:45:56 UTC (rev 14165)
+++ branches/Branch_5_1/tests/func/Forums/forumsTest.php	2011-08-18 12:58:57 UTC (rev 14166)
@@ -132,7 +132,7 @@
 		$this->init();
 		$this->click("link=Mailing Lists");
 		$this->waitForPageToLoad("30000");
-		$this->click("//body/div[@id='maindiv']/p[1]/strong/a[2]");
+		$this->click("//body//div[@id='maindiv']/p[1]/strong/a[2]");
 		$this->waitForPageToLoad("30000");
 		$this->click("link=Add Mailing List");
 		$this->waitForPageToLoad("30000");
@@ -143,7 +143,7 @@
 		$this->assertTrue($this->isTextPresent("List Added"));
 		$this->click("link=Forums");
 		$this->waitForPageToLoad("30000");
-		$this->click("//body/div[@id='maindiv']/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: branches/Branch_5_1/tests/func/Tasks/createTaskTest.php
===================================================================
--- branches/Branch_5_1/tests/func/Tasks/createTaskTest.php	2011-08-18 12:45:56 UTC (rev 14165)
+++ branches/Branch_5_1/tests/func/Tasks/createTaskTest.php	2011-08-18 12:58:57 UTC (rev 14166)
@@ -97,7 +97,7 @@
         $this->type("summary", "Task1: Hello Paris");
         $this->type("details", "Details: Hello Paris");
         $this->type("hours", "10");
-        $this->click("//body/div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
+        $this->click("//body//div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
         $this->waitForPageToLoad("30000");
         $this->assertTextPresent("Task Created Successfully");
 
@@ -106,7 +106,7 @@
         $this->type("summary", "Task2: Hello France");
         $this->type("details", "Details: Hello France");
         $this->type("hours", "15");
-        $this->click("//body/div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
+        $this->click("//body//div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
         $this->waitForPageToLoad("30000");
          $this->assertTextPresent("Task Created Successfully");
 
@@ -115,7 +115,7 @@
         $this->type("summary", "Task3: Hello World");
         $this->type("details", "Details: Hello World");
         $this->type("hours", "20");
-        $this->click("//body/div[@id='maindiv']/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