}
}
if ($added) {
- $this->click("_qf_Component_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForText('crm-notification-container', "Saved");
+ $this->clickLink("_qf_Component_next-bottom");
+ $this->checkCRMAlert("Saved");
}
}
function testStandaloneActivityAdd() {
$this->webtestLogin();
- $this->openCivipage("admin/setting/preferences/display", "reset=1", "name=activity_assignee_notification_ics");
+ $this->openCiviPage("admin/setting/preferences/display", "reset=1", "name=activity_assignee_notification_ics");
// Notify assignees should be checked by default, so we just need to click the ical setting which is off by default.
$this->check("name=activity_assignee_notification_ics");
$firstName1 = substr(sha1(rand()), 0, 7);
$this->webtestAddContact("$firstName1", "Anderson", $firstName1 . "@anderson.com");
- $this->openCivipage("activity", "reset=1&action=add&context=standalone", "_qf_Activity_upload");
+ $this->openCiviPage("activity", "reset=1&action=add&context=standalone", "_qf_Activity_upload");
$this->select("activity_type_id", "value=1");
$this->enableComponents(array('CiviCampaign'));
//Creating a new Campaign
- $this->openCivipage('campaign/add', 'reset=1', '_qf_Campaign_upload-bottom');
+ $this->openCiviPage('campaign/add', 'reset=1', '_qf_Campaign_upload-bottom');
$campaignTitle = "Campaign $title";
$this->type("title", $campaignTitle);
$this->waitForText('crm-notification-container', "Case opened successfully.");
// Go back to dashboard
- $this->openCivipage('case', 'reset=1', 'css=a.button');
+ $this->openCiviPage('case', 'reset=1');
// Click on a drilldown cell and check if right radio is checked
$this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");