$texts = array(
"Title - New Membership $hash",
"This is introductory message for $pageTitle",
- '$ 50.00 Student',
- "$ $rand.00 Label $hash",
+ 'Student - $ 50.00',
+ "Label $hash - $ $rand.00",
"Pay later label $hash",
'Organization Details',
'Other Amount',
);
foreach ($texts as $text) {
$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
+ $this->waitForAjaxContent();
}
// Disable and re-enable Other Amounts (verify fix for CRM-15021)
$texts = array(
"Title - New Membership $hash",
"This is introductory message for $pageTitle",
- '$ 50.00 Student',
- "$ $rand.00 Label $hash",
+ 'Student - $ 50.00',
+ "Label $hash - $ $rand.00",
"Pay later label $hash",
'Organization Details',
'Other Amount',
);
foreach ($texts as $text) {
$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
+ $this->waitForAjaxContent();
}
}
$texts = array(
"Title - New Membership $hash",
"This is introductory message for $pageTitle",
- "$ $rand.00 Label $hash",
+ "Label $hash - $ $rand.00",
"Pay later label $hash",
'Organization Details',
'Other Amount',
);
foreach ($texts as $text) {
$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
+ $this->waitForAjaxContent();
}
}
//Go to online membership signup page
$this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'Student')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[2]/span/label/span[1][contains(text(),'Student')]");
//Type first name and last name and email
$this->type("first_name", $firstName);
$this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'Student')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[2]/span/label/span[1][contains(text(),'Student')]");
//Type first name and last name and email
$this->type("first_name", $firstName);
//Go to online membership signup page
$this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'General')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[1]/span/label/span[1][contains(text(),'General')]");
//Type first name and last name
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
);
}
$this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'Student')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[2]/span/label/span[1][contains(text(),'Student')]");
//Credit Card Info
$this->select("credit_card_type", "value=Visa");
//get Url for Live Contribution Page
$this->openCiviPage("contribute/transact", "reset=1&id=$pageId", '_qf_Main_upload-bottom');
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div/span/label/span[1][contains(text(),'$membershipTypeTitle')]");
$firstName = 'Eia' . substr(sha1(rand()), 0, 4);
$lastName = 'Ande' . substr(sha1(rand()), 0, 4);
$name = $firstName . ' ' . $lastName;
$this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
- $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label/span[2][contains(text(),'$membershipTypeTitle')]");
+ $this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div/span/label/span[1][contains(text(),'$membershipTypeTitle')]");
$this->type("email-5", $email);
$this->click('is_for_organization');
$this->type('onbehalf_organization_name', $organisationName);