$this->type("description", "This is a test campaign");
// include groups for the campaign
+ $this->waitForAjaxContent();
$this->multiselect2("includeGroups", array("$groupName", "Advisory Board"));
// fill the end date for campaign
$this->select2("event_id", $eventName);
// Select role
+ $this->waitForAjaxContent();
$this->multiselect2("role_id", array('Volunteer'));
// Choose Registration Date.
$this->type('sort_name', $firstName);
$this->click("_qf_Search_refresh");
- $this->waitForElementPresent("xpath=//div[@id='participantSearch']");
- $this->click("xpath=//div[@id='participantSearch']/table/tbody/tr/td[11]/span/a[text()='Edit']");
+ $this->waitForElementPresent("xpath=//table[@class='selector row-highlight']");
+ $this->click("xpath=//table[@class='selector row-highlight']/tbody/tr/td[11]/span/a[text()='Edit']");
$this->waitForElementPresent("_qf_Participant_cancel-bottom");
$this->assertTrue($this->isTextPresent("$campaignTitle"));
}
// configure default mail-box
$this->openCiviPage("admin/mailSettings", "action=update&id=1&reset=1", '_qf_MailSettings_cancel-bottom');
+ $this->waitForElementPresent('name');
$this->type('name', 'Test Domain');
$this->type('domain', 'example.com');
$this->select('protocol', 'value=1');
$this->waitForTextPresent("~1 recipient");
// fill subject for mailing
+ $this->waitForElementPresent("xpath=//input[@name='subject']");
$this->type("xpath=//input[@name='subject']", "Test subject {$mailingName} for Webtest");
// HTML format message
$this->waitForElementPresent('_qf_Summary_submit_save');
// Fill Email Subject
- $this->click("xpath=//div[@id='mainTabContainer']/ul//li/a[text()='Title and Format']");
+ $this->click("xpath=//div[@id='mainTabContainer']/ul//li/a[text()='Email Delivery']");
$this->waitForAjaxContent();
$this->type("email_subject", $emaiSubject);
$this->type("email_cc", $emailCC);
// We want navigation menu
- $this->click("xpath=//div[@id='mainTabContainer']/ul//li/a[text()='Email Delivery']");
+ $this->click("xpath=//div[@id='mainTabContainer']/ul//li/a[text()='Access']");
$this->click("is_navigation");
// Navigation menu under Reports section
// Visit report
$this->click("xpath=//div[@id='Contact']//table/tbody//tr/td/a/strong[text() = '$reportName']");
$this->waitForPageToLoad($this->getTimeoutMsec());
-
+ $this->click("_qf_Summary_submit");
+ $this->waitForAjaxContent();
// Is filter statistics present?
$this->assertElementContainsText("xpath=//tr/th[@class='statistics'][text()='Contact Name']/../td", "Contains $firstName", "Statistics did not found!");
//Is greater than or equal to 100
//check for criteria
- $this->assertElementContainsText('css=table.statistics-table', "Is greater than or equal to 10", "Criteria is not selected");
+ $this->verifyText("xpath=//table[@class='report-layout statistics-table']/tbody/tr[3]/td", "Is greater than or equal to 10");
//click on next link
- $this->click("_qf_Detail_submit_save");
+ $this->click("_qf_Detail_submit");
$this->waitForPageToLoad($this->getTimeoutMsec());
// check if criteria still exits
- $this->assertElementContainsText('css=table.statistics-table', "Is greater than or equal to 10", "Criteria is not selected");
+ $this->verifyText("xpath=//table[@class='report-layout statistics-table']/tbody/tr[3]/td", "Is greater than or equal to 10");
}
}