From: kurund Date: Mon, 12 Aug 2013 20:58:07 +0000 (+0530) Subject: fixes for WebTest_Contact_GroupAddTest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=51063434b02b0d80b4a5aedd460684034ef6f340;p=civicrm-core.git fixes for WebTest_Contact_GroupAddTest --- diff --git a/tests/phpunit/WebTest/Contact/GroupAddTest.php b/tests/phpunit/WebTest/Contact/GroupAddTest.php index a7c90a7da2..62f1d63728 100644 --- a/tests/phpunit/WebTest/Contact/GroupAddTest.php +++ b/tests/phpunit/WebTest/Contact/GroupAddTest.php @@ -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