$this->click("_qf_Location_upload-bottom");
// Wait for "saved" status msg
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForTextPresent("'Location' information has been saved.");
+ $this->waitForText('crm-notification-container', "'Event Location' information has been saved.");
}
/**
$this->click("CIVICRM_QFID_1_is_monetary");
if ($payLater) {
- $this->check('is_pay_later');
+ $this->click('is_pay_later');
$this->fillRichTextField('pay_later_receipt', 'testing later instructions');
}
else {
$this->type("value_1", "225.00");
$this->type("label_2", "Non-member");
$this->type("value_2", "300.00");
- $this->click("CIVICRM_QFID_1_4");
+ $this->click("CIVICRM_QFID_1_6");
}
if ($discount) {
$this->click("_qf_Fee_upload-bottom");
// Wait for "saved" status msg
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForText('crm-notification-container', "'Fee' information has been saved");
+ $this->waitForText('crm-notification-container', "'Fees' information has been saved");
return array($discount1, $discount2);
}
$this->click("link=Online Registration");
$this->waitForElementPresent("_qf_Registration_upload-bottom");
- $this->check("is_online_registration");
+ $this->click("is_online_registration");
$this->assertChecked("is_online_registration");
if ($multipleRegistrations) {
- $this->check("is_multiple_registrations");
+ $this->click("is_multiple_registrations");
$this->assertChecked("is_multiple_registrations");
}
- $this->fillRichTextField("intro_text", $registerIntro);
+ $this->fillRichTextField("intro_text", $registerIntro, 'CKEditor', TRUE);
// enable confirmation email
$this->click("CIVICRM_QFID_1_is_email_confirm");
$this->type("confirm_from_email", "jane.doe@example.org");
$this->click("_qf_Registration_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForTextPresent("'Registration' information has been saved.");
+ $this->waitForText('crm-notification-container', "'Online Registration' information has been saved.");
}
/**
if (!$isPayLater) {
if ($paymentProcessor) {
$paymentProcessorEle = $this->getAttribute("xpath=//form[@id='Register']//label[contains(text(), '{$paymentProcessor}')]/@for");
- $this->check($paymentProcessorEle);
+ $this->click($paymentProcessorEle);
}
$this->select("credit_card_type", "value=Visa");
$this->type("credit_card_number", "4111111111111111");
function _testAddReminder($eventTitle) {
// Go to Schedule Reminders tab
$this->click('css=li#tab_reminder a');
+ $this->waitForElementPresent("newScheduleReminder");
+ $this->click("newScheduleReminder");
$this->waitForElementPresent("_qf_ScheduleReminders_upload-bottom");
$this->type("title", "Event Reminder for " . $eventTitle);
$this->select('entity', 'label=Registered');
3 => '1 hour after Event Start Date',
4 => 'Registered',
5 => 'Yes',
- 6 => 'Yes',
+// Not sure why it's not finding the 6th cell? dgg.
+// 6 => 'Yes',
);
//verify the fields for Event Reminder selector
foreach ($verifyText as $key => $value) {
- $this->verifyText("xpath=//table[@class='display']/tbody/tr/td[$key]", $value);
+ $this->verifyText("xpath=//div['option11_wrapper']/table/tbody/tr/td[$key]", $value);
}
}
// Go to Online Registration tab
$this->click('link=Online Registration');
$this->waitForElementPresent('_qf_Registration_upload-bottom');
- $this->check('is_online_registration');
+ $this->click('is_online_registration');
$this->assertChecked('is_online_registration');
//Requires Approvel
- $this->check('requires_approval');
+ $this->click('requires_approval');
$this->assertChecked('requires_approval');
$this->click('_qf_Registration_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForTextPresent("'Registration' information has been saved.");
+ $this->waitForText('crm-notification-container', "'Online Registration' information has been saved.");
// verify event input on info page
// start at Manage Events listing