Skip to content
Snippets Groups Projects
Commit fbcfc163 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

webtest fixes for WebTest_Campaign_ActivityTest

parent 2324d13a
Branches
Tags
No related merge requests found
......@@ -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));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment