);
foreach ($fields as $label => $field) {
- $this->type('label', $label);
$this->waitForAjaxContent();
$this->select('html_type', "value={$field['type']}");
-
if ($field['type'] == 'Text') {
$this->type('price', $field['amount']);
//yash
else {
$this->_testAddMultipleChoiceOptions($field['options']);
}
+ $this->type('label', $label);
$this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom', FALSE);
$this->waitForText("crm-notification-container", "Price Field '$label' has been saved.");
}
$this->click('link=Register Now');
$this->waitForElementPresent('_qf_Register_upload-bottom');
- $this->type("xpath=//input[@class='four crm-form-text required']", '1');
+ $this->type("xpath=//div[@id='priceset']/div[@class='crm-section full_conference-section']//div/input[@class='four crm-form-text required']", '1');
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$participants[1] = array(
// register for event
$this->click('link=Register Now');
$this->waitForElementPresent('_qf_Register_upload-bottom');
-
- $this->type("xpath=//input[@class='four crm-form-text required']", '2');
+ $this->type("xpath=//div[@id='priceset']/div[@class='crm-section full_conference-section']//div/input[@class='four crm-form-text required']", '2');
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$participants[2] = array(
// Find Participant
$this->openCiviPage('event/search', 'reset=1', 'participant_fee_amount_low');
+ $this->waitForElementPresent('event_id');
$this->select2("event_id", $eventTitle);
$this->click('_qf_Search_refresh');
$this->waitForPageToLoad($this->getTimeoutMsec());
// verify number of participants records and total participant count
+ $this->waitForAjaxContent();
$this->assertStringsPresent(array('2 Results', 'Actual participant count : 24'));
// CRM-7953, check custom search Price Set Details for Event
$this->openCiviPage('admin/price', 'reset=1&action=add', '_qf_Set_next-bottom');
// Enter Priceset fields (Title, Used For ...)
+ $this->waitForElementPresent("title");
$this->type('title', $setTitle);
$this->check('extends[1]');
$this->select("css=select.crm-form-select", "label={$financialType}");
+ $this->waitForElementPresent("help_pre");
$this->type('help_pre', 'This is test priceset.');
$this->assertChecked('is_active', 'Verify that Is Active checkbox is set.');
$this->click('link=Fees');
$this->waitForElementPresent('_qf_Fee_upload-bottom');
$this->click('CIVICRM_QFID_1_is_monetary');
- $this->click("xpath=//tr[@class='crm-event-manage-fee-form-block-payment_processor']/td[2]/label[text()='" . $params['payment_processor'] . "']");
+ $this->select2('payment_processor', $params['payment_processor'], TRUE);
+
$this->select('financial_type_id', 'Event Fee');
if (array_key_exists('price_set', $params)) {
$this->select('price_set_id', 'label=' . $params['price_set']);
$this->check('is_online_registration');
$this->assertChecked('is_online_registration');
- $this->click('intro_text-plain');
- $this->fillRichTextField('intro_text', 'Fill in all the fields below and click Continue.');
+ $this->click('intro_text');
+ $this->fillRichTextField('intro_text', 'Fill in all the fields below and click Continue.', 'CKEditor', TRUE);
// enable confirmation email
$this->click('CIVICRM_QFID_1_is_email_confirm');
$this->select('billing_state_province_id-5', 'value=1004');
$this->type('billing_postal_code-5', '94129');
- $this->clickLink('_qf_Register_upload-bottom', '_qf_Confirm_next-bottom');
+ $this->clickLink('_qf_Register_upload-bottom', '_qf_Confirm_next-bottom', FALSE);
$confirmStrings = array('Event Fee(s)', 'Billing Name and Address', 'Credit Card Information');
$this->assertStringsPresent($confirmStrings);
$this->click('_qf_Confirm_next-bottom');