/**
* @param bool $discount
* @param bool $priceSet
- * @param int $processorId
+ * @param int|array $processorIDs
*/
- public function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorName) {
+ public function _testAddFees($discount = FALSE, $priceSet = FALSE, $processorIDs) {
// Go to Fees tab
$this->click("link=Fees");
$this->waitForElementPresent("_qf_Fee_upload-bottom");
$this->click("CIVICRM_QFID_1_is_monetary");
- $this->select2('payment_processor', $processorName, TRUE);
+ $this->select2('payment_processor', $processorIDs, TRUE);
$this->select("financial_type_id", "value=4");
if ($priceSet) {
// get one - TBD
//View Contribution Record and verify data
$expected = array(
- 'From' => "{$email}",
+ 'From' => "{$firstName} {$lastName}",
'Financial Type' => 'Donation',
$amountLabel => $amountValue,
'Contribution Status' => 'Completed',
$this->waitForElementPresent('_qf_Fee_upload-bottom');
$this->click('CIVICRM_QFID_1_is_monetary');
$processorName = 'Test Processor';
- $this->click("xpath=//tr[@class='crm-event-manage-fee-form-block-payment_processor']/td[2]/label[text()='$processorName']");
+ $this->select2('payment_processor', $processorName, TRUE);
+
$this->select('financial_type_id', 'label=Event Fee');
$this->type("label[1]", 'Junior Stars');
$this->type("value[1]", '500.00');
$this->waitForTextPresent("$widgetTitle");
// click Full Screen icon and test full screen container
- $this->waitForElementPresent("css=li#widget-2 a.fullscreen-icon");
- $this->click("css=li#widget-2 a.fullscreen-icon");
+ $this->waitForElementPresent("css=li#widget-3 a.fa-expand");
+ $this->click("css=li#widget-3 a.fa-expand");
$this->waitForElementPresent("ui-id-1");
$this->waitForTextPresent("$widgetTitle");
// Because it tends to cause problems, all uses of sleep() must be justified in comments
$this->WebtestAddActivity();
$widgetTitle = "Activities";
$widgetEnabledSelector = "contact-activity-selector-dashlet_wrapper";
- $widgetConfigureID = "2-0";
+ $widgetConfigureID = "3-0";
// now add the widget
$this->open($this->sboxPath . "civicrm");
// click through to the activity view screen
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a");
// check number of activity for contact
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a@href"));
$expectedMembershipActivityId = $url['queryString']['id'];
// verify membership id with membership activity id
// click through to the activity view screen after edit
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody/tr/td[8]/span/a");
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody/tr/td[8]/span/a@href"));
$actualMembershipActivityId1 = $url['queryString']['id'];
// verify membership id and membership activity id with previous one