if ($onBehalf) {
$this->click('is_organization');
- $this->select('onbehalf_profile_id', 'label=On Behalf Of Organization');
+ $this->select("xpath=//*[@class='crm-contribution-onbehalf_profile_id']//span[@class='crm-profile-selector-select']//select", 'label=On Behalf Of Organization');
$this->type('for_organization', "On behalf $hash");
if ($onBehalf == 'required') {
'Organization Details',
'Other Amount',
'I pledge to contribute this amount every',
- "Honoree Section Title $hash",
- "Honoree Introductory Message $hash",
- 'In Honor of',
'Name and Address',
'Summary Overlay',
);
$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
}
}
-
+
// CRM-12510 Test copy contribution page
function testContributionPageCopy() {
// open browser, login
'Organization Details',
'Other Amount',
'I pledge to contribute this amount every',
- "Honoree Section Title $hash",
- "Honoree Introductory Message $hash",
- 'In Honor of',
'Name and Address',
'Summary Overlay',
);
'Organization Details',
'Other Amount',
'I pledge to contribute this amount every',
- "Honoree Section Title $hash",
- "Honoree Introductory Message $hash",
- 'In Honor of',
'Name and Address',
'Summary Overlay',
);
$this->select('financial_type_id', "label=Donation");
$this->click('is_organization');
- $this->select('onbehalf_profile_id', 'label=On Behalf Of Organization');
+ $this->select("xpath=//*[@class='crm-contribution-onbehalf_profile_id']//span[@class='crm-profile-selector-select']//select", 'label=On Behalf Of Organization');
$this->type('for_organization', "On behalf $hash");
// make onBehalf optional
$this->click('CIVICRM_QFID_1_2');