$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
$this->openCiviPage("admin/contribute", "reset=1");
$this->waitForAjaxContent();
- $this->click("xpath=//table['dataTables_wrapper no-footer']/tbody//tr/td[1]/strong[text()='$pageTitle']/../../td[5]/div[1]/span/ul/li[8]/a[text()='Premiums']");
+ $this->click("xpath=//table['dataTables_wrapper no-footer']/tbody//tr/td[1]/strong[text()='$pageTitle']/../../td[4]/div[1]/span/ul/li[8]/a[text()='Premiums']");
$this->waitForElementPresent('_qf_Premium_cancel-bottom');
$this->click("xpath=//div[@class='messages status no-popup']/a[text()='add one']");
$this->waitForElementPresent('_qf_AddProduct_cancel-bottom');
$this->clickAjaxLink('_qf_Activity_upload-bottom');
$id = $this->urlArg('id');
$this->waitForText("case_id_$id", $activitySubject);
- $this->click("xpath=//a[contains(text(),'$activitySubject')]");
+ $this->click("xpath=//table[@id='case_id_{$id}']/tbody//tr/td[2]/div[text()='{$activitySubject}']/../../td[8]/a[text()='View']");
$LinkCaseActivityData = array(
"Client" => $contact2['first_name'],
// check that open case subject is present
$this->assertText("case_id_$id", $subject);
// click open case activity pop-up dialog
- $this->click("link=$subject");
+ $this->click("xpath=//table[@id='case_id_{$id}']/tbody//tr/td[2]/div[text()='{$subject}']/../../td[8]/a[text()='View']");
$this->waitForElementPresent("ActivityView");
$this->waitForElementPresent("css=tr.crm-case-activity-view-Activity");
// set page location of table containing activity view data
$this->waitForElementPresent("subject");
$this->type("subject", "test note");
$this->type("note", "this is a test note contact webtest");
- $this->assertElementContainsText('notesBlock', "Subject\n Notes");
+ $this->assertElementContainsText('notesBlock', "Subject\n Note");
//Demographics section
$this->click("//div[@class='crm-accordion-header' and contains(.,'Demographics')]");
// Click View action link on associated contribution record
$this->waitForElementPresent("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[1][text()='View']");
$this->click("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[1][text()='View']");
- $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[3]/span[2]");
+ $this->waitForElementPresent("_qf_ContributionView_cancel-bottom");
//View Contribution Record
$verifyData = array(
'From' => $firstName . ' ' . $lastName,