//senario 1
$this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
- $this->_testDefaultSenarios("National_Membership_{$title}-section", 2);
+ $this->_testDefaultSenarios("national_membership_{$title}-section", 2);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
$this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
//senario 2
$this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
// checking
- $this->checkOptions("National_Membership_{$title}-section", 2);
+ $this->checkOptions("national_membership_{$title}-section", 2);
// senario 1
- $this->_testDefaultSenarios("National_Membership_{$title}-section", 4);
- $this->_testDefaultSenarios("Second_Membership_{$title}-section", 2);
+ $this->_testDefaultSenarios("national_membership_{$title}-section", 4);
+ $this->_testDefaultSenarios("second_membership_{$title}-section", 2);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
$this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
//senario 3
$this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
// checking
- $this->checkOptions("Second_Membership_{$title}-section", 2);
+ $this->checkOptions("second_membership_{$title}-section", 2);
// senario 2
- $this->_testDefaultSenarios("National_Membership_{$title}-section", 3);
+ $this->_testDefaultSenarios("national_membership_{$title}-section", 3);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
$this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->click("_qf_Confirm_next-bottom");
// checking senario 3
$this->assertTrue($this->isTextPresent("You have a current Lifetime Membership which does not need to be renewed."));
- $this->_testDefaultSenarios("National_Membership_{$title}-section", 1);
+ $this->_testDefaultSenarios("national_membership_{$title}-section", 1);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
$this->clickLink("_qf_Main_upload-bottom", "_qf_Main_upload-bottom");
$this->assertTrue($this->isTextPresent("You already have a lifetime membership and cannot select a membership with a shorter term."));
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
//View Contribution Record and verify data
$expected = array(
'From' => "{$firstName} {$lastName}",
- 'Financial Type' => 'Member Dues',
+ 'Financial Type' => 'Member Dues (test) ',
'Total Amount' => '0.00',
'Contribution Status' => 'Completed',
- 'Received Into' => 'Payment Processor Account',
'Source' => "Online Contribution: $contributionTitle",
'Online Contribution Page' => $contributionTitle,
);
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr");