}
}
// Send receipt mail.
+ array_unshift($this->statusMessage, ts('The contribution record has been saved.'));
if ($contribution->id && !empty($this->_params['is_email_receipt'])) {
$this->_params['trxn_id'] = CRM_Utils_Array::value('trxn_id', $result);
$this->_params['contact_id'] = $contactID;
elseif ($processorType == 'AuthNet') {
// FIXME: we 'll need to make a new separate account for testing
$processorSettings = array(
+ 'user_name' => '5ULu56ex',
'test_user_name' => '5ULu56ex',
+ 'password' => '7ARxW575w736eF5p',
'test_password' => '7ARxW575w736eF5p',
);
}
parent::setUp();
}
- /**
- * Test Signature in TinyMC.
- */
- public function testTinyMCE() {
- $this->webtestLogin();
-
- $this->openCiviPage('dashboard', 'reset=1', 'crm-recently-viewed');
- $this->click("//div[@id='crm-recently-viewed']/ul/li/a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
- $name = $this->getText("xpath=//div[@class='crm-summary-display_name']");
-
- // Get contact id from url.
- $contactId = $this->urlArg('cid');
-
- // Select Your Editor
- $this->_selectEditor('TinyMCE');
-
- $this->openCiviPage("contact/add", "reset=1&action=update&cid=$contactId");
-
- $this->click("//tr[@id='Email_Block_1']/td[1]/div[3]/div[1]");
- // HTML format message
- $signature = 'Contact Signature in html';
-
- $this->fireEvent('email_1_signature_html', 'focus');
- $this->fillRichTextField('email_1_signature_html', $signature, 'TinyMCE');
-
- // TEXT Format Message
- $this->type('email_1_signature_text', 'Contact Signature in text');
- $this->click('_qf_Contact_upload_view-top');
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- // Is status message correct?
- $this->waitForText('crm-notification-container', "Contact Saved");
-
- // Go for Ckeck Your Editor, Click on Send Mail
- $this->click("//a[@id='crm-contact-actions-link']/span");
- // the other test checks this in a popup, we'll try it full-page here
- $this->clickLinkSuppressPopup('link=Send an Email', "xpath=//body[@id='tinymce']/p[2]");
-
- $this->click('subject');
- $subject = 'Subject_' . substr(sha1(rand()), 0, 8);
- $this->type('subject', $subject);
-
- // Is signature correct? in Editor
- $this->_checkSignature('html_message', $signature, 'TinyMCE');
-
- $this->click('_qf_Email_upload-top');
-
- // Go for Activity Search
- $this->_checkActivity($subject, $signature);
-
- // Set Editor back to default so we don't break other tests
- $this->_selectEditor('CKEditor');
- }
-
/**
* Test Signature in CKEditor.
*/
$this->webtestAddBillingDetails($firstName, $middleName, $lastName);
$this->click('_qf_Contribution_upload-bottom');
$this->waitForElementPresent('link=Edit');
- $this->waitForText('crm-notification-container', "The contribution record has been processed.");
+ $this->waitForText('crm-notification-container', "The contribution record has been saved.");
// Use Find Contributions to make sure test recurring contribution exists
$this->openCiviPage("contribute/search", "reset=1", 'contribution_currency_type');
$this->check('is_online_registration');
$this->assertChecked('is_online_registration');
- $this->click('intro_text-plain');
- $this->fillRichTextField('intro_text', $registerIntro);
+ $this->fillRichTextField('intro_text', $registerIntro, 'CKEditor', TRUE);
// enable confirmation email
$this->click('CIVICRM_QFID_1_is_email_confirm');
$this->check('is_online_registration');
$this->assertChecked('is_online_registration');
- $this->click('intro_text-plain');
- $this->fillRichTextField('intro_text', $registerIntro);
+ $this->fillRichTextField('intro_text', $registerIntro, 'CKEditor', TRUE);
// enable confirmation email
$this->click('CIVICRM_QFID_1_is_email_confirm');
$this->click('is_multiple_registrations');
}
- $this->click('intro_text-plain');
- $this->fillRichTextField('intro_text', 'Fill in all the fields below and click Continue.');
+ $this->fillRichTextField('intro_text', 'Fill in all the fields below and click Continue.', 'CKEditor', TRUE);
// enable confirmation email
$this->click('CIVICRM_QFID_1_is_email_confirm');
}
else {
// click 'Delete Activity' link
- $this->click("//table[@class='contact-activity-selector-dashlet dataTable no-footer']/tbody/tr[1]/td[8]/span//a[text()='Delete']");
+ $this->click("//table[@class='contact-activity-selector-dashlet crm-ajax-table dataTable no-footer']/tbody/tr[1]/td[8]/span//a[text()='Delete']");
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent("_qf_Activity_next-bottom");