// Using helper webtestFillDate function.
$this->webtestFillDateTime("start_date", "+1 week");
$this->webtestFillDateTime("end_date", "+1 week 1 day 8 hours ");
-
+ $this->waitForElementPresent('max_participants');
$this->type("max_participants", "50");
$this->click("is_map");
$this->click("is_public");
//Add event
$this->openCiviPage("event/add", "reset=1&action=add");
+ $this->waitForElementPresent("_qf_EventInfo_cancel-bottom");
$eventName = 'My Event - ' . substr(sha1(rand()), 0, 7);
$eventDescription = "Here is a description for this conference.";
$this->_testAddEventInfo($eventName, $eventDescription);
}
if ($payLater) {
$this->waitForAjaxContent();
- $this->click("xpath=//label[text()='Pay later label {$hash}']");
+ $this->click("xpath=//div[@class='payment_processor-section']/div[2]/label[text()='Pay later label {$hash}']");
}
$this->type("email-5", $firstName . "@example.com");
$this->waitForElementPresent("first_name");
// We want navigation menu
$this->click("xpath=//div[@class='crm-report-criteria']/div[@id='mainTabContainer']/ul//li/a[text()='Access']");
+ $this->waitForAjaxContent();
$this->click("is_navigation");
// Navigation menu under Reports section
// Is Navigation?
$this->click("xpath=//div[@class='crm-report-criteria']/div[@id='mainTabContainer']/ul/li[6]/a");
+ $this->waitForAjaxContent();
$this->assertEquals("on", $this->getValue("is_navigation"));
// Is correct Navigation Parent?