From: Roland Mas Date: Fri, 19 Feb 2010 14:00:51 +0000 (+0000) Subject: Fixed Selenium tests (hopefully) X-Git-Tag: v5_0_rc1~49 X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=commitdiff_plain;h=06c2fed494992266cb5576284d2362a4d30aea9b Fixed Selenium tests (hopefully) --- diff --git a/tests/func/Forums/forums.php b/tests/func/Forums/forums.php index 06f7ae1f40..d2b267b1a9 100755 --- a/tests/func/Forums/forums.php +++ b/tests/func/Forums/forums.php @@ -136,7 +136,7 @@ class CreateForum extends FForge_SeleniumTestCase $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 @@ class CreateForum extends FForge_SeleniumTestCase $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"); diff --git a/tests/func/Tasks/createTask.php b/tests/func/Tasks/createTask.php index 690d0a4620..786d143827 100644 --- a/tests/func/Tasks/createTask.php +++ b/tests/func/Tasks/createTask.php @@ -102,7 +102,7 @@ class CreateTask extends FForge_SeleniumTestCase $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 @@ class CreateTask extends FForge_SeleniumTestCase $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 @@ class CreateTask extends FForge_SeleniumTestCase $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")); }