fixes for WebTest_Contact_GroupAddTest
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 20:58:07 +0000 (02:28 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 20:58:07 +0000 (02:28 +0530)
tests/phpunit/WebTest/Contact/GroupAddTest.php

index a7c90a7da22fd386bbca7da9b34c1f09e10275bd..62f1d63728194429c61a0e321b8ec5aa45c81049 100644 (file)
@@ -77,7 +77,8 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//form[@id='Edit']/div[2]/div/table[2]/tbody/tr/td[2]/select");
 
     //assert created by in the edit page
-    $this->assertTrue($this->isElementPresent("xpath=//form[@id='Edit']/div[2]/div/table/tbody/tr[2]/td[contains(text(),'Created By')]/following-sibling::td[contains(text(),'{$createdBy}')]"));
+    $this->assertTrue($this->isElementPresent(
+      "xpath=id('Edit')/div[2]/div/table/tbody/tr[2]/td[contains(text(), '{$createdBy}')]"));
     $this->openCiviPage('group', 'reset=1');
 
     //search groups using created by