+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->waitForElementPresent("xpath=//table[@id='caseRoles-selector-$id']/tbody/tr[4]/td[2]/a");
// check that expected roles are listed in the Case Roles pane
foreach ($caseRoles as $role) {
- $this->assertText("css=div.crm-case-roles-block", $role);
+ $this->assertElementContainsText("css=div.crm-case-roles-block", $role);
}
// check that case creator role has been assigned to logged in user
- $this->verifyText("xpath=//table[@id='caseRoles-selector-$id']/tbody/tr[4]/td[2]", $creatorName);
+ $this->assertElementContainsText("xpath=//table[@id='caseRoles-selector-$id']/tbody/tr[1]/td[2]", $creatorName);
}
/**
$id = $this->urlArg('id');
// check that expected auto-created activities are listed in the Case Activities table
foreach ($activityTypes as $aType) {
- $this->assertText("case_id_$id", $aType);
+ $this->assertElementContainsText("case_id_$id", $aType);
}
}
public function _testVerifyOpenCaseActivity($subject, $openCaseData) {
$id = $this->urlArg('id');
// check that open case subject is present
- $this->assertText("case_id_$id", $subject);
+ $this->assertElementContainsText("case_id_$id", $subject);
// click open case activity pop-up dialog
$this->click("xpath=//table[@id='case_id_{$id}']/tbody//tr/td[2]/div[text()='{$subject}']/../../td[8]/a[text()='View']");
$this->waitForElementPresent("ActivityView");