[evolvis-commits] r14345: Fixed Selenium tests after change of HTML structure

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 04:09:17 CET 2011


Author: mirabilos
Date: 2011-02-28 04:09:17 +0100 (Mon, 28 Feb 2011)
New Revision: 14345

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

Modified: trunk/gforge_base/evolvisforge-5.1/tests/func/Forums/forums.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Forums/forums.php	2011-02-28 03:09:13 UTC (rev 14344)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Forums/forums.php	2011-02-28 03:09:17 UTC (rev 14345)
@@ -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/gforge_base/evolvisforge-5.1/tests/func/Tasks/createTask.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Tasks/createTask.php	2011-02-28 03:09:13 UTC (rev 14344)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Tasks/createTask.php	2011-02-28 03:09:17 UTC (rev 14345)
@@ -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 evolvis-commits mailing list