From: kurund Date: Mon, 12 Aug 2013 09:40:37 +0000 (+0530) Subject: fixes for WebTest_Activity_ContactContextAddTest::testContactContextActivityAdd X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5733268f342049cc0e0679a78dde064fa0d80471;p=civicrm-core.git fixes for WebTest_Activity_ContactContextAddTest::testContactContextActivityAdd --- diff --git a/tests/phpunit/WebTest/Activity/ContactContextAddTest.php b/tests/phpunit/WebTest/Activity/ContactContextAddTest.php index 88fa27c5fb..738032b9a9 100644 --- a/tests/phpunit/WebTest/Activity/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Activity/ContactContextAddTest.php @@ -119,10 +119,11 @@ class WebTest_Activity_ContactContextAddTest extends CiviSeleniumTestCase { // Is status message correct? $this->waitForText('crm-notification-container', $subject); - $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[9]/span/a[text()='View']"); + $this->waitForElementPresent( + "xpath=//table[@id='contact-activity-selector-activity']//tbody//tr[2]/td[8]/span/a[text()='View']"); // click through to the Activity view screen - $this->click("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[9]/span/a[text()='View']"); + $this->click("xpath=//table[@id='contact-activity-selector-activity']//tbody//tr[2]/td[8]/span/a[text()='View']"); $this->waitForElementPresent('_qf_Activity_cancel-bottom'); // verify Activity created