fixes for WebTest_Activity_ContactContextAddTest::testContactContextActivityAdd
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 09:40:37 +0000 (15:10 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 09:40:37 +0000 (15:10 +0530)
tests/phpunit/WebTest/Activity/ContactContextAddTest.php

index 88fa27c5fb7223be11fd7f808312018b6e8d779f..738032b9a96112534abefcb392630fe79d1de8bd 100644 (file)
@@ -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