$this->waitForElementPresent('_qf_Merge_cancel-bottom');
$this->click('toggleSelect');
$this->click('_qf_Merge_next-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec() * 4);
+ $this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertTrue($this->isTextPresent("Staff, Student"));
}
$this->select("name=option51_length", "value=100");
$totalContacts = $this->getXpathCount("//table[@class='pagerDisplay']/tbody/tr");
- $this->click("xpath=//form[@id='DedupeFind']//a/span[text()='Batch Merge Duplicates']");
+ $this->click("//form[@id='DedupeFind']//a/span[contains(text(),'Batch Merge Duplicates')]");
// Check confirmation alert.
$this->assertTrue(
$this->waitForText('crm-notification-container', "Contact Saved");
$this->openCiviPage("contact/dedupefind", "reset=1&action=update&rgid=4");
- $this->click("xpath=//a/span[text()='Refresh Duplicates']");
+ $this->click("//a/span[contains(text(),'Refresh Duplicates')]");
$this->assertTrue((bool) preg_match("/This will refresh the duplicates list. Click OK to proceed./", $this->getConfirmation()));
$this->chooseOkOnNextConfirmation();
$this->waitForPageToLoad($this->getTimeoutMsec());
public function _fillParticipantDetails($processorId) {
$contact = $this->createDialogContact();
- $this->select('payment_processor_id', "value={$processorId}");
$event_id = $this->getAttribute("xpath=//*[@id='event_id']@value");
//check if it is the selected event
$this->assertEquals($event_id, 3);
// fill correct available option for select field
$this->select("price_{$selectFieldId}", "value={$selectFieldOp2}");
+ $this->click("css=input[data-amount=10]");
$this->click('_qf_Register_upload-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->click('_qf_Participant_2_next-Array');
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertStringsPresent(array('Sorry, currently only 4 seats are available for this option.'));
+ $this->assertStringsPresent(array('Sorry, this option is currently sold out.'));
// Skip participant3 and register
$this->click('_qf_Participant_2_next_skip-Array');
public function _checkConfirmationAndRegister() {
$confirmStrings = array('Event Fee(s)', 'Billing Name and Address', 'Credit Card Information');
$this->assertStringsPresent($confirmStrings);
+ $this->waitForElementPresent("_qf_Confirm_next-bottom");
$this->click('_qf_Confirm_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$thankStrings = array('Thank You for Registering', 'Event Total', 'Transaction Date');