From 51063434b02b0d80b4a5aedd460684034ef6f340 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 13 Aug 2013 02:28:07 +0530 Subject: [PATCH] fixes for WebTest_Contact_GroupAddTest --- tests/phpunit/WebTest/Contact/GroupAddTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1