$className::preProcess($this);
$activityGroupTree = $this->_groupTree;
- if (!$this->_caseTypeId) {
- $params = CRM_Utils_Request::exportValues();
- if (isset($params['case_type_id'])) {
- $this->_caseTypeId = $params['case_type_id'];
- }
- }
// for case custom fields to populate with defaults
if (!empty($_POST['hidden_custom'])) {
- CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_caseTypeId, 1, 'Case', $this->_caseId);
+ $params = CRM_Utils_Request::exportValues();
+ CRM_Custom_Form_CustomData::preProcess($this, NULL, CRM_Utils_Array::value('case_type_id', $params, $this->_caseTypeId), 1, 'Case', $this->_caseId);
CRM_Custom_Form_CustomData::buildQuickForm($this);
}
if (($this->_values['is_pay_later'] &&
empty($this->_paymentProcessor) &&
!array_key_exists('hidden_processor', $params)) ||
- (!empty($params['payment_processor_id']) && $params['payment_processor_id'] == 0)
+ (CRM_Utils_Array::value('payment_processor_id', $params) == 0)
) {
$params['is_pay_later'] = 1;
}
*/
public function _testVerifyCaseRoles($caseRoles, $creatorName) {
$id = $this->urlArg('id');
+ $this->click('css=div.crm-case-roles-block div.crm-accordion-header');
+
$this->waitForElementPresent("xpath=//table[@id='caseRoles-selector-$id']/tbody/tr[4]/td[2]/a");
// check that expected roles are listed in the Case Roles pane
foreach ($caseRoles as $role) {
// Probably don't need both tableId and prefix - but good examples for other situations where only one can be used
$this->webtestVerifyTabularData($openCaseData, '', $activityViewTableId);
- $this->click("xpath=//span[@class='ui-button-icon-primary ui-icon ui-icon-closethick']");
+ $this->click("xpath=//span[@class='ui-button-icon-primary ui-icon fa-times']");
}
/**
$xpath = "xpath=//label[text() = '{$payLaterText}']/preceding-sibling::input[1]";
$this->click($xpath);
- $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
+ $this->click("_qf_Main_upload-bottom");
+ $this->waitForElementPresent("xpath=//div[@class='bold pay_later_receipt-section']");
$payLaterInstructionsText = "Pay later instructions $hash";
$this->verifyText("xpath=//div[@class='bold pay_later_receipt-section']/p", $payLaterInstructionsText);
-
$this->click("_qf_Confirm_next-bottom");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $this->verifyText("xpath=//div[@id='help']/div/p", $payLaterInstructionsText);
+ $this->waitForElementPresent("xpath=//div[@class='help']/div/p");
+ $this->verifyText("xpath=//div[@class='help']/div/p", $payLaterInstructionsText);
//login to check contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
public function _getImportComponentContactType($component, $contactType) {
$importComponentMode = array(
'Event' => array(
- 'Individual' => 'CIVICRM_QFID_1_18',
- 'Household' => 'CIVICRM_QFID_2_20',
- 'Organization' => 'CIVICRM_QFID_4_22',
+ 'Individual' => 'CIVICRM_QFID_1_20',
+ 'Household' => 'CIVICRM_QFID_2_22',
+ 'Organization' => 'CIVICRM_QFID_4_24',
),
'Contribution' => array(
'Individual' => 'CIVICRM_QFID_1_18',
$summaryInfoLinks = array(
'Intended Recipients',
'Successful Deliveries',
- 'Tracked Opens',
+ 'Unique Opens', //as per CRM-16506- Fixed and improve mailing stats changes
+ 'Total Opens',
'Click-throughs',
'Forwards',
'Replies',
'Mailing Delivery -' => "Successful",
),
),
- 'Tracked Opens' => array(
+ 'Unique Opens' => array(
'report' => array('report_name' => 'Mail Opened', 'Mailing' => "Mailing $mailingName Webtest"),
'search' => array(
'Mailing Name IN' => "\"Mailing {$mailingName} Webtest",