webtest fixes for WebTest_Campaign_ActivityTest
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 11:22:02 +0000 (16:52 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 11:22:02 +0000 (16:52 +0530)
tests/phpunit/WebTest/Campaign/ActivityTest.php

index f9315dd7b69398f431398c47a1366a7a9f990de4..da964ba8c1236214d26b4f688786ec9d290dd26e 100644 (file)
@@ -197,14 +197,15 @@ class WebTest_Campaign_ActivityTest extends CiviSeleniumTestCase {
     // Is status message correct?
     $this->waitForText('crm-notification-container', $subject);
 
-    $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[1]/td[9]/span/a[text()='View']");
+    $this->waitForElementPresent("
+    xpath=//table[@id='contact-activity-selector-activity']//tbody//tr[1]/td[8]/span/a[text()='View']");
 
     // click through to the Activity view screen
-    $this->click("xpath=//div[@id='Activities']//table/tbody//tr/td[2][text()='This is subject of test activity being added through activity tab of contact summary screen.']/../td[9]/span/a[text()='View']");
+    $this->click("xpath=//table[@id='contact-activity-selector-activity']//tbody//tr[1]/td[8]/span/a[text()='View']");
     $this->waitForElementPresent('_qf_Activity_cancel-bottom');
 
     // verify Activity created
-    $this->verifyText("xpath=id( 'Activity' )/div[2]/table[1]/tbody/tr[5]/td[2]", preg_quote($campaignTitle));
+    $this->verifyText("xpath=id('Activity')/div[2]/table[1]/tbody/tr[5]/td[2]", preg_quote($campaignTitle));
   }
 }