fix webtest
authoryashodha <yashodha.chaku@webaccess.co.in>
Fri, 30 Aug 2013 06:31:33 +0000 (12:01 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Fri, 30 Aug 2013 06:31:33 +0000 (12:01 +0530)
tests/phpunit/WebTest/Contact/GroupAddTest.php

index bd4298fdb0bf41319642d67da94c7fd8889e9608..a97d8a175ae0527e247960f88e36e20a1c34d77c 100644 (file)
@@ -78,7 +78,7 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase {
 
     //assert created by in the edit page
     $this->assertTrue($this->isElementPresent(
-      "xpath=id('Edit')/div[2]/div/table/tbody/tr[2]/td[contains(text(), '{$createdBy}')]"));
+      "xpath=//form[@id='Edit']/div[2]/div/table/tbody/tr[2]/td[contains(text(), '{$createdBy}')]"));
     $this->openCiviPage('group', 'reset=1');
 
     //search groups using created by