// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
- $this->check("xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input");
+ $this->waitForAjaxContent();
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage('contact/add', 'reset=1&ct=Individual');
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
- $this->check("xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input");
+ $this->waitForAjaxContent();
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
- $this->check("xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input");
+ $this->waitForAjaxContent();
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
// Visit contact summary page.
$this->click("css=ul.ui-autocomplete li");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForAjaxContent();
$this->waitForText('tags', "tagset1, tagset2");
}
//check the status message
$this->waitForText('crm-notification-container', 'Relationship created.');
-
- $this->waitForElementPresent("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]/a[1]");
- $this->click("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]/a[1]");
+ $this->waitForElementPresent("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]//a[text()='View']");
+ $this->click("xpath=//div[@id='contact-summary-relationship-tab']/div[2]/div[1]/table/tbody/tr/td[9]/span[1]//a[text()='View']");
$this->webtestVerifyTabularData(
array(
//unselect the payment processor configured
$this->openCiviPage("event/manage/fee", "reset=1&action=update&id={$eventId}", '_qf_Fee_upload-bottom');
- $this->click("xpath=//tr[@class='crm-event-manage-fee-form-block-payment_processor']/td[2]/label[text()='Test Processor']");
$this->click("_qf_Fee_upload-bottom");
$this->waitForText('crm-notification-container', "'Fees' information has been saved.");
//check the delete for price field
$this->openCiviPage("admin/price/field", "reset=1&action=browse&sid={$sid}");
$this->waitForElementPresent("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]");
- $this->click("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]/ul/li[2]/a");
+ $this->click("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]/ul[@class='panel']/li[2]//a[text()='Delete']");
//assert the message
$this->waitForText('price_set_used_by', "it is currently in use by one or more active events or contribution pages or contributions or event templates. If you no longer want to use this price set, click the event title below, and modify the fees for that event.");
//check the delete for priceset
$this->openCiviPage("admin/price", "reset=1");
$this->waitForElementPresent("xpath=//table[@class='display crm-price-set-listing dataTable no-footer']/tbody/tr/td[4]/span[2]");
- $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[4]/span[2]/ul/li[3]/a");
+ $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[4]/span[2]/ul/li[3]//a[text()='Delete']");
// Check confirmation alert.
$this->assertTrue((bool) preg_match("/^Are you sure you want to delete this price set?/",
$this->getConfirmation()
$this->select('status_id', 'value=1');
// Setting registration source
+ $this->waitForElementPresent('source');
$this->type('source', 'Event Partially Paid Webtest');
// Since we're here, let's check of screen help is being displayed properly
$this->waitForElementPresent('priceset');
$this->click("xpath=//input[@class='crm-form-radio']");
- sleep(1);
+ $this->waitForAjaxContent();
// record payment total amount
// amount populated after fee selection
$amtTotalOwed = (int) $this->getValue('id=total_amount');
// Is status message correct?
$this->waitForText('crm-notification-container', "Event registration for $displayName has been added");
- $this->waitForElementPresent("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table//tbody/tr[1]/td[8]/span//a[text()='View']");
+ $this->waitForElementPresent("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table[@class='selector row-highlight']//tbody/tr[1]/td[8]/span//a[text()='View']");
//click through to the participant view screen
- $this->click("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table/tbody/tr[1]/td[8]/span//a[text()='View']");
+ $this->click("xpath=//form[@class='CRM_Event_Form_Search crm-search-form']/table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span//a[text()='View']");
$this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]");
$this->webtestVerifyTabularData(
$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()='$processorName']");
+ $this->select2('payment_processor', $processorName, TRUE);
if ($priceSet) {
// get one - TBD
}
$this->assertChecked("is_multiple_registrations");
}
- $this->click('intro_text-plain');
+ $this->click('intro_text');
$this->fillRichTextField("intro_text", $registerIntro);
// enable confirmation email
'Send additional reminders' => '4 days after the last one sent',
)
);
-
$this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
- $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
- $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
+ $this->click("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
+ $this->click("xpath=//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("adjust-option-type");
$this->select('field_name[0]', 'value=Contact');
$this->click("//option[@value='Contact']");
+ $this->waitForElementPresent("field_name[1]");
$this->select('field_name[1]', 'value=group');
$this->click("//option[@value='group']");