$this->assertTrue($this->isTextPresent($text), 'Missing text: ' . $text);
$this->openCiviPage("admin/contribute", "reset=1");
$this->waitForAjaxContent();
- $this->click("xpath=//table['dataTables_wrapper no-footer']/tbody//tr/td[1]/strong[text()='$pageTitle']/../../td[4]/div[1]/span/ul/li[8]/a[text()='Premiums']");
+ $this->click("xpath=//table['dataTables_wrapper no-footer']/tbody//tr/td[1]/strong[text()='$pageTitle']/../../td[5]/div[1]/span/ul/li[8]/a[text()='Premiums']");
$this->waitForElementPresent('_qf_Premium_cancel-bottom');
$this->click("xpath=//div[@class='messages status no-popup']/a[text()='add one']");
$this->waitForElementPresent('_qf_AddProduct_cancel-bottom');
if ($widget) {
// fill in step 8 (Widget Settings)
+ $this->waitForPageToLoad($this->getTimeoutMsec());
$this->click('link=Widgets');
$this->waitForElementPresent('_qf_Widget_next-bottom');
if ($pcp) {
// fill in step 9 (Enable Personal Campaign Pages)
+ $this->waitForPageToLoad($this->getTimeoutMsec());
$this->click('link=Personal Campaigns');
$this->waitForElementPresent('_qf_Contribute_next-bottom');
$this->click('pcp_active');
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage('contribute/transact', "reset=1&id=$pageId", '_qf_Main_upload-bottom');
+ $this->openCiviPage('contribute/transact', "reset=1&id=$pageId&action=preview", '_qf_Main_upload-bottom');
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
-
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type("sort_name", "$lastName $firstName");
$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);
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage('contribute/transact', "reset=1&id=$pageId", '_qf_Main_upload-bottom');
+ $this->openCiviPage('contribute/transact', "reset=1&id=$pageId&action=preview", '_qf_Main_upload-bottom');
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type('sort_name', "$lastName $firstName");
$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);
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage('contribute/transact', "reset=1&id=$pageId", '_qf_Main_upload-bottom');
+ $this->openCiviPage('contribute/transact', "reset=1&id=$pageId&action=preview", '_qf_Main_upload-bottom');
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
-
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type('sort_name', "$lastName $firstName");
$this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE);
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom', FALSE);
protected function _fillOutContributionPage() {
// load contribution page
- $this->openCiviPage("contribute/transact", "reset=1&id={$this->pageId}", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id={$this->pageId}&action=preview", "_qf_Main_upload-bottom");
// fill out info
$this->type("xpath=//div[@class='crm-section other_amount-section']//div[2]/input", "30");
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
$this->type("postal_code-1", "94117");
$this->select("country-1", "value=1228");
$this->select("state_province-1", "value=1001");
-
// Honoree Info
- $this->click("xpath=id('Main')/div[2]/fieldset/div[2]/div/label[text()='In Honor of']");
+ $this->click("xpath=id('Main')/div[3]/fieldset/div[2]/div/label[text()='In Honor of']");
$this->select("honor[prefix_id]", "label=Ms.");
$this->type("honor[first_name]", $honorFirstName);
//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);
'Contribution Status' => 'Completed',
);
$this->webtestVerifyTabularData($expected);
-
//View Soft Credit record of type 'Honor of'
$this->waitForTextPresent($honorDisplayName);
$this->waitForTextPresent('100.00 (In Honor of)');
$amountLabel = 'Total Amount';
$amountValue = '0.00';
//Open Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
$this->type("email-5", $firstName . "@example.com");
$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);
$this->webtestLogout();
//Open Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$firstName = 'Ma' . substr(sha1(rand()), 0, 4);
$lastName = 'An' . substr(sha1(rand()), 0, 7);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
-
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type("sort_name", "$lastName $firstName");
$this->multiselect2('contribution_product_id', array('Coffee Mug'));
$this->click("_qf_Search_refresh");
//Online Pay Later Contribution
$this->_testOnlineContribution($contact);
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
-
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type("sort_name", $contact['sort_name']);
$this->click("_qf_Search_refresh");
//logout
$this->webtestLogout();
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$this->type("email-5", $contact['email']);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
-
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Contribution is a Test?')]/../../td[2]/label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->type("sort_name", $contact['sort_name']);
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[2]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
$this->webtestAddContact($firstName, 'Anderson', TRUE);
$contactName = "Anderson, $firstName";
$displayName = "$firstName Anderson";
- $this->openCiviPage("event/register", "reset=1&id=$id", '_qf_Register_upload-bottom');
+ $this->openCiviPage("event/register", "reset=1&id=$id&action=preview", '_qf_Register_upload-bottom');
$this->type('first_name', $firstName);
//fill in last name
// Find Main Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $firstName);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
// Find Main Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $firstName);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
// Find Main Participant
$this->openCiviPage('event/search', "reset=1");
$this->type("sort_name", $firstName2);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
// Find additional Participant
$this->openCiviPage("event/search", "reset=1");
$this->type("sort_name", $participantfname2);
+ $this->click("xpath=//tr/td[1]/label[contains(text(), 'Participant is a Test?')]/../label[contains(text(), 'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='participantSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ParticipantView_cancel-top", FALSE);
$eventPageId, $customId, $firstName, $lastName,
$participantfname, $participantlname, $email1, $email2
) {
- $this->openCiviPage("event/register", "id={$eventPageId}&reset=1", "_qf_Register_upload-bottom");
+ $this->openCiviPage("event/register", "id={$eventPageId}&reset=1&action=preview", "_qf_Register_upload-bottom");
+ $this->waitForElementPresent("_qf_Register_upload-bottom");
$this->select("additional_participants", "value=1");
$this->type("email-Primary", $email1);
$this->select("billing_state_province_id-5", "value=1004");
$this->type("billing_postal_code-5", "94129");
+ $this->waitForElementPresent("current_employer");
$this->type("current_employer", "ABCD");
$this->type("job_title", "Painter");
$this->waitForElementPresent('nick_name');
$this->click("_qf_Register_upload-bottom");
$this->waitForElementPresent("_qf_Participant_1_next-Array");
-
$this->type("email-Primary", $email2);
$this->type("first_name", $participantfname);
$this->type("last_name", $participantlname);
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
+ $this->waitForElementPresent("current_employer");
$this->type("current_employer", "ABCD");
$this->type("job_title", "Potato picker");
* @param $email4
*/
public function _testEventRegistrationAfterRemoving($eventPageId, $customId, $firstName2, $lastName2, $participantfname2, $participantlname2, $email3, $email4) {
- $this->openCiviPage("event/register", "id={$eventPageId}&reset=1", "_qf_Register_upload-bottom");
+ $this->openCiviPage("event/register", "id={$eventPageId}&reset=1&action=preview", "_qf_Register_upload-bottom");
$this->select("additional_participants", "value=1");
$this->type("email-Primary", $email4);
$this->assertType('numeric', $cid);
//senario 1
- $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
$this->_testDefaultSenarios("National_Membership_{$title}-section", 2);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
$this->waitForPageToLoad($this->getTimeoutMsec());
//senario 2
- $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
// checking
$this->checkOptions("National_Membership_{$title}-section", 2);
// senario 1
$this->waitForPageToLoad($this->getTimeoutMsec());
//senario 3
- $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
// checking
$this->checkOptions("Second_Membership_{$title}-section", 2);
// senario 2
$this->waitForPageToLoad($this->getTimeoutMsec());
//senario 4
- $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id={$membershipContributionPageId}&cid={$cid}&action=preview", "_qf_Main_upload-bottom");
// checking senario 3
$this->assertTrue($this->isTextPresent("You have a current Lifetime Membership which does not need to be renewed."));
//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");
$this->click("xpath=//div[@id='memberSearch']/table/tbody/tr/td[11]/span/a[text()='View']");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->click("_qf_Search_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
*/
public function _testOnlineMembershipSignup($pageId, $memTypeId, $firstName, $lastName, $payLater, $hash, $otherAmount = FALSE, $amountSection = TRUE) {
//Open Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
// Select membership type 1
$this->waitForElementPresent("xpath=//div[@class='crm-section membership_amount-section']/div[2]//span/label");
if ($memTypeId != 'No thank you') {
$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);
$this->webtestLogout();
//Go to online membership signup page
- $this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=2&action=preview", "_qf_Main_upload-bottom");
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[2]/span/label/span[1][contains(text(),'Student')]");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//logout
$this->webtestLogout();
- $this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=2&action=preview", "_qf_Main_upload-bottom");
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div[2]/span/label/span[1][contains(text(),'Student')]");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$lastName = 'An' . substr(sha1(rand()), 0, 7);
//Go to online membership signup page
- $this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=2&action=preview", "_qf_Main_upload-bottom");
$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->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
preg_quote($value)
);
}
- $this->openCiviPage("contribute/transact", "reset=1&id=2", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=2&action=preview", "_qf_Main_upload-bottom");
$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->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->webtestLogout();
//get Url for Live Contribution Page
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", '_qf_Main_upload-bottom');
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", '_qf_Main_upload-bottom');
$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);
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//logout
$this->webtestLogout();
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$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->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$organisationName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
$this->type("sort_name", "$lastName, $firstName");
+ $this->click("xpath=//tr/td[1]/p/label[contains(text(),'Membership is a Test?')]/../label[contains(text(),'Yes')]/preceding-sibling::input[1]");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
$lastName = 'Ande' . substr(sha1(rand()), 0, 4);
$email = $firstName . '@test.com';
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div/span/label/span[1][contains(text(),'$membershipTypeTitle')]");
$this->waitForElementPresent("auto_renew");
$this->click('is_recur');//disable recurring contribution
$this->clickLink('_qf_Amount_next', '_qf_Amount_next-bottom');
- $this->openCiviPage("contribute/transact", "reset=1&id=$pageId", "_qf_Main_upload-bottom");
+ $this->openCiviPage("contribute/transact", "reset=1&id=$pageId&action=preview", "_qf_Main_upload-bottom");
$this->click("xpath=//div[@class='crm-section membership_amount-section']/div[2]/div/span/label/span[1][contains(text(),'$membershipTypeTitle')]");
$this->type("xpath=//div[@class='content other_amount-content']/input[@type='text']", '30');
$this->click("is_recur");