// Add to group.
$this->select("group_id", "label=$parentGroupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
$secondContactName = 'TestExport2' . substr(sha1(rand()), 0, 7);
list($emailContactSecond,$prefixLabelContactScnd,$suffixLabelContactScnd,$genderLabelContactScnd) = WebTest_Export_ContactTest::webtestAddContactWithGenderPrefixSuffix($secondContactName, "John", "$secondContactName.john@example.org", Null);
// Add to group.
$this->select("group_id", "label=$parentGroupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
$this->openCiviPage("contact/search", "reset=1");
// Add to group.
$this->select("group_id", "label=$parentGroupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
// Adding child group contact
// We're using Quick Add block on the main page for this.
// Add to child group.
$this->select("group_id", "label=regexp:$childGroupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
// Visit contact search page.
$this->openCiviPage("contact/search", "reset=1");
// Add to group.
$this->select("group_id", "label=$groupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
$firstName1 = 'aa' . substr(sha1(rand()), 0, 5);
$this->webtestAddContact($firstName1, "Smith", "{$firstName1}.smith@example.org");
// Add to group.
$this->select("group_id", "label=$groupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
$firstName2 = 'bb' . substr(sha1(rand()), 0, 5);
$this->click("//div[@id='addressBlockId']/div[1]");
$this->click("address[1][use_shared_address]");
- $this->waitForElementPresent("contact_1");
- $this->webtestFillAutocomplete($houseHold);
+ $this->waitForElementPresent("address_1_master_contact_id");
+ $this->select2('address_1_master_contact_id', $houseHold);
$this->waitForTextPresent("121A Sherman");
$this->click('_qf_Contact_upload_view-bottom');
// Add to group.
$this->select("group_id", "label=$groupName");
$this->click("_qf_GroupContact_next");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("//*[@id='GroupContact']");
$this->openCiviPage("contact/search", "reset=1", NULL);
$this->reviewCSV($csvFile, $checkHeaders, $checkRows, 2);
}
- function addContactGroup($groupName = 'New Group', $parentGroupName = "- select -") {
+ function addContactGroup($groupName = 'New Group', $parentGroupName = "- select group -") {
$this->openCiviPage("group/add", "reset=1", "_qf_Edit_upload");
// Fill group name.
$this->click('link=Add Grant');
// wait for grant form to load completely
- $this->waitForElementPresent('note');
+ $this->waitForText('css=span.ui-dialog-title', "$firstName $lastName");
// check contact name on Grant form
- $this->assertElementContainsText('page-title', "$firstName $lastName");
// select grant Status
$this->select('status_id', 'value=1');
$this->type('note', "Grant Note for $firstName");
// Clicking save.
- $this->clickLink('_qf_Grant_upload', "xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink('_qf_Grant_upload', "xpath=//div[@class='view-content']//table/tbody/tr[1]/td[8]/span/a[text()='View']", FALSE);
// click through to the Grant view screen
- $this->clickLink("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']", '_qf_GrantView_cancel-bottom');
+ $this->clickLink("xpath=//div[@class='view-content']//table/tbody/tr[1]/td[8]/span/a[text()='View']", '_qf_GrantView_cancel-bottom', FALSE);
$gDate = date('F jS, Y', strtotime('now'));
// Add new Grant Type
$this->openCiviPage('admin/options/grant_type', 'reset=1');
- $this->click("css=#grant_type > div.action-link > #new > span");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->click("xpath=//*[@id='crm-main-content-wrapper']/div[2]/div[1]/a");
+ $this->waitForElementPresent('_qf_Options_cancel-bottom');
$grantType = 'GrantType' . $rand;
$this->type('id=label', $grantType);
$this->click('id=_qf_Options_next-top');
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "The Grant Type '$grantType' has been saved.");
// Create new Custom Field Set that extends the grant type
$this->select('id=data_type_0', 'label=Money');
$this->click('id=_qf_Field_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->waitForText('crm-notification-container', "Your custom field '$grantField' has been saved.");
+ $this->waitForText('crm-notification-container', "Custom field '$grantField' has been saved.");
// Create new Grant
$this->openCiviPage('grant/add', 'reset=1&action=add&context=standalone', '_qf_Grant_upload-bottom');
- $this->select('id=profiles_1', 'label=New Individual');
- $this->waitForElementPresent('_qf_Edit_next');
$firstName = 'First' . $rand;
$lastName = 'Last' . $rand;
- $this->type('id=first_name', $firstName);
- $this->type('id=last_name', $lastName);
- $this->click('id=_qf_Edit_next');
+ $this->webtestNewDialogContact($firstName, $lastName);
$this->select('id=status_id', 'label=Approved');
$this->select('id=grant_type_id', "label=$grantType");
$this->waitForTextPresent($grantField);
- $this->assertElementContainsText($grantFieldSet, $grantField);
+ $this->assertElementContainsText("xpath=//div[@id='customData']/div[@class='custom-group custom-group-$grantFieldSet crm-accordion-wrapper ']", $grantField);
$this->type('id=amount_total', '100.00');
- $this->type("css=div#$grantFieldSet input.form-text", '99.99');
- $this->clickLink('id=_qf_Grant_upload-bottom', "xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->type("xpath=//div[@id='customData']/div[@class='custom-group custom-group-$grantFieldSet crm-accordion-wrapper ']/div[@class='crm-accordion-body']/table/tbody/tr/td[2]/input[@class='crm-form-text']", '99.99');
+ $this->clickLink('id=_qf_Grant_upload-bottom', "xpath=//div[@class='view-content']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
// Click through to the Grant view screen
- $this->click("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
$this->waitForElementPresent('_qf_GrantView_cancel-bottom');
// verify tabular data for grant view
$this->type("note", "Grant Note");
// Clicking save.
- $this->clickLink("_qf_Grant_upload", "xpath=//div[@id='Grants']//table//tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->clickLink("_qf_Grant_upload", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[8]/span/a[text()='View']", FALSE);
//click through to the Grant view screen
- $this->click("xpath=//div[@id='Grants']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[1]/td[8]/span/a[text()='View']");
$this->waitForElementPresent("_qf_GrantView_cancel-bottom");
$this->click("css=li#tab_group a");
$this->waitForElementPresent("_qf_GroupContact_next");
$this->select("group_id", "$groupName");
- $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next");
+ $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next", FALSE);
// configure default mail-box
$this->setupDefaultMailbox();
$this->click("add");
// click next
- $this->clickLink("_qf_Group_next", "_qf_Settings_cancel");
+ $this->clickLink("_qf_Group_next", "_qf_Settings_cancel", FALSE);
//--------track and respond----------
//check redirected page to Scheduled and Sent Mailings and verify for mailing name
$this->assertElementContainsText('page-title', "Find Mailings");
- $this->assertElementContainsText("xpath=//table[@class='selector']/tbody//tr//td", "Mailing $mailingName Webtest");
+ $this->assertElementContainsText("xpath=//table[@class='selector row-highlight']/tbody//tr//td", "Mailing $mailingName Webtest");
//--------- mail delivery verification---------
// test undelivered report
$this->click("css=li#tab_group a");
$this->waitForElementPresent("_qf_GroupContact_next");
$this->select("group_id", "$groupName");
- $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next");
+ $this->clickLink("_qf_GroupContact_next", "_qf_GroupContact_next", FALSE);
// configure default mail-box
$this->openCiviPage("admin/mailSettings", "action=update&id=1&reset=1", '_qf_MailSettings_cancel-bottom');
//----------end New Mailing-------------
//check redirected page to Scheduled and Sent Mailings and verify for mailing name
- $this->assertElementContainsText('page-title', "Scheduled and Sent Mailings");
- $this->assertElementContainsText("xpath=//table[@class='selector']/tbody//tr//td", "Mailing $mailingName Webtest");
+ $this->assertElementContainsText('page-title', "Find Mailings");
+ $this->assertElementContainsText("xpath=//table[@class='selector row-highlight']/tbody//tr//td", "Mailing $mailingName Webtest");
// directly send schedule mailing -- not working right now
$this->openCiviPage("mailing/queue", "reset=1");
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
// verify if Pledge is created
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent('_qf_PledgeView_next-bottom');
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Status' => 'Pending',
)
);
- $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
+ $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
//Edit and add the first payment for 300.00
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->click("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->type('total_amount', '300.00');
$this->waitForPageToLoad("30000");
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
//Check whether the next two payments are done or not
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='View Payment']");
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Completed");
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[7]","Completed");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='View Payment']");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Completed");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[7]","Completed");
//Cancel the contribution made for amount of 300.00
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='View Payment']");
- $this->click("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='View Payment']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='ContributionView']//div[2]/div/div/a");
$this->click("xpath=//form[@id='ContributionView']//div[2]/div/div/a");
$this->waitForElementPresent("_qf_Contribution_upload-bottom");
$this->select('contribution_status_id', 'value=3');
$this->click("_qf_Contribution_upload-bottom");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]");
// verify that first paayment is cancelled and the rest two payments are revert back to the pending status
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[7]","Cancelled");
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Pending");
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[7]","Pending");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[7]","Cancelled");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Pending");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[7]","Pending");
// Check whether a new payment with pending status is added at the last or not
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[14]/td[7]","Pending");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[14]/td[7]","Pending");
// verify that Balance sum is correct
- $this->verifyText("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[4]","1,200.00");
+ $this->verifyText("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[4]","1,200.00");
}
}
$this->select("contribution_page_id", "value=3");
- //Honoree section
- $this->click("Honoree");
- $this->waitForElementPresent("honor_email");
-
- $this->click("CIVICRM_QFID_1_2");
- $this->select("honor_prefix_id", "value=3");
-
- $honreeFirstName = 'First' . substr(sha1(rand()), 0, 4);
- $honreeLastName = 'last' . substr(sha1(rand()), 0, 7);
- $this->type("honor_first_name", $honreeFirstName);
- $this->type("honor_last_name", $honreeLastName);
- $this->type("honor_email", $honreeFirstName . "@example.com");
//PaymentReminders
$this->click("PaymentReminders");
$this->type("additional_reminder_day", "4");
$this->click("_qf_Pledge_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Pending',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
$this->verifyText("xpath=//form[@id='PledgeView']//table/tbody/tr/td[text()='{$label}']/following-sibling::td", preg_quote($value));
}
- $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody//tr//td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
}
}
$this->select("contribution_page_id", "value=3");
- //Honoree section
- $this->click("Honoree");
- $this->waitForElementPresent("honor_email");
-
- $this->click("CIVICRM_QFID_1_2");
- $this->select("honor_prefix_id", "value=3");
-
- $honreeFirstName = 'First' . substr(sha1(rand()), 0, 4);
- $honreeLastName = 'last' . substr(sha1(rand()), 0, 7);
- $this->type("honor_first_name", $honreeFirstName);
- $this->type("honor_last_name", $honreeLastName);
- $this->type("honor_email", $honreeFirstName . "@example.com");
//PaymentReminders
$this->click("PaymentReminders");
$this->type("additional_reminder_day", "4");
$this->click("_qf_Pledge_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent('link=Add Pledge');
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Pending',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("adjust-option-type");
$this->type("total_amount", "5");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("adjust-option-type");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'In Progress',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[5]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[5]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[5]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[5]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$this->webtestVerifyTabularData(array(
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Completed',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
$this->select("contribution_page_id", "value=3");
- //Honoree section
- $this->click("Honoree");
- $this->waitForElementPresent("honor_email");
-
- $this->click("CIVICRM_QFID_1_2");
- $this->select("honor_prefix_id", "value=3");
- $honreeFirstName = 'First' . substr(sha1(rand()), 0, 4);
- $honreeLastName = 'last' . substr(sha1(rand()), 0, 7);
- $this->type("honor_first_name", $honreeFirstName);
- $this->type("honor_last_name", $honreeLastName);
- $this->type("honor_email", $honreeFirstName . "@example.com");
//PaymentReminders
$this->click("PaymentReminders");
$this->type("additional_reminder_day", "4");
$this->click("_qf_Pledge_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Pending',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("adjust-option-type");
$this->type("total_amount", "15");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
$this->waitForElementPresent("adjust-option-type");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'In Progress',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$this->webtestVerifyTabularData(array(
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Completed',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
$this->select("contribution_page_id", "value=3");
- //Honoree section
- $this->click("Honoree");
- $this->waitForElementPresent("honor_email");
-
- $this->click("CIVICRM_QFID_1_2");
- $this->select("honor_prefix_id", "value=3");
-
- $honreeFirstName = 'First' . substr(sha1(rand()), 0, 4);
- $honreeLastName = 'last' . substr(sha1(rand()), 0, 7);
- $this->type("honor_first_name", $honreeFirstName);
- $this->type("honor_last_name", $honreeLastName);
- $this->type("honor_email", $honreeFirstName . "@example.com");
//PaymentReminders
$this->click("PaymentReminders");
$this->type("additional_reminder_day", "4");
$this->click("_qf_Pledge_upload-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
//Add payments
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
$this->waitForElementPresent("_qf_Contribution_upload");
$this->click("_qf_Contribution_upload");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent("_qf_PledgeView_next-bottom");
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Completed',
- 'In Honor of' => 'Mr. ' . $honreeFirstName . ' ' . $honreeLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
// verify if Pledge is created
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent('_qf_PledgeView_next-bottom');
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Status' => 'Pending',
)
);
- $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a");
+ $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->click("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->type('total_amount', '300.00');
$this->waitForPageToLoad("30000");
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->click("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->type('total_amount', '250.00');
$this->waitForPageToLoad("30000");
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
- $this->click("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->click("xpath=//form[@id='Contribution']//div[2]/table/tbody/tr[3]/td[2]/a");
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
// delete the contribution associated with the 2nd payment
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='View Payment']");
- $this->click("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='View Payment']");
+ $this->click("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a");
$this->waitForElementPresent("xpath=//form[@id='ContributionView']//div[2]/div/div/a[2]");
$this->click("xpath=//form[@id='ContributionView']//div[2]/div/div/a[2]");
$this->waitForElementPresent("_qf_Contribution_next-bottom");
$this->click("_qf_Contribution_next-bottom");
- $this->waitForElementPresent("ui-id-3");
- $this->click("ui-id-3");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]");
+ $this->waitForElementPresent("ui-id-4");
+ $this->click("ui-id-4");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]");
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Pending");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td[7]","Pending");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td");
// verify that payment owed amount is correct (250.00)
- $this->verifyText("xpath=//div[@id='Pledges']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td","250.00");
+ $this->verifyText("xpath=//div[@class='view-content']//table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td","250.00");
// verify that Total Paid and Balance sums are correct
- $this->verifyText("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[3]","470.00");
- $this->verifyText("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[4]","1,930.00");
+ $this->verifyText("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[3]","470.00");
+ $this->verifyText("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[4]","1,930.00");
}
}
$this->select('contribution_page_id', 'value=3');
- //Honoree section
- $this->click('Honoree');
- $this->waitForElementPresent('honor_email');
-
- $this->click('CIVICRM_QFID_1_2');
- $this->select('honor_prefix_id', 'value=3');
-
- $honorFirstName = 'Fo' . substr(sha1(rand()), 0, 4);
- $honorLastName = 'Ba' . substr(sha1(rand()), 0, 7);
- $this->type('honor_first_name', $honorFirstName);
- $this->type('honor_last_name', $honorLastName);
- $this->type('honor_email', $honorFirstName . '@example.com');
//PaymentReminders
$this->click('PaymentReminders');
$this->type('additional_reminder_day', '4');
$this->click('_qf_Pledge_upload-bottom');
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
// verify if Pledge is created
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
//click through to the Pledge view screen
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
+ $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
$this->waitForElementPresent('_qf_PledgeView_next-bottom');
$pledgeDate = date('F jS, Y', strtotime('now'));
'Pledge Made' => $pledgeDate,
'Financial Type' => 'Donation',
'Pledge Status' => 'Pending',
- 'In Honor of' => 'Mr. ' . $honorFirstName . ' ' . $honorLastName,
'Initial Reminder Day' => '4 days prior to schedule date',
'Maximum Reminders Send' => 2,
'Send additional reminders' => '4 days after the last one sent',
)
);
- $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
- $this->click("xpath=//div[@id='Pledges']//table//tbody/tr[1]/td[1]/span/a");
- $this->waitForElementPresent("xpath=//div[@id='Pledges']//table//tbody//tr//td/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+ $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
+ $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
+ $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
}
}