+--------------------------------------------------------------------+
*/
-
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
class WebTest_Import_MatchExternalIdTest extends ImportCiviSeleniumTestCase {
* Test participant import for Individuals matching on external identifier.
*/
function testContributionImport() {
- // This is the path where our testing install resides.
- // The rest of URL is defined in CiviSeleniumTestCase base class, in
- // class attributes.
- $this->open($this->sboxPath);
-
$this->webtestLogin();
// Get sample import data.
* Test membership import for Individuals matching on external identifier.
*/
function testMemberImportIndividual() {
- // This is the path where our testing install resides.
- // The rest of URL is defined in CiviSeleniumTestCase base class, in
- // class attributes.
- $this->open($this->sboxPath);
-
$this->webtestLogin();
// Get membership import data for Individuals.
* Test participant import for Individuals matching on external identifier.
*/
function testParticipantImportIndividual() {
- // This is the path where our testing install resides.
- // The rest of URL is defined in CiviSeleniumTestCase base class, in
- // class attributes.
- $this->open($this->sboxPath);
-
// Log in using webtestLogin() method
$this->webtestLogin();
// Clicking save.
$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Contact Saved");
+ $this->waitForText('crm-notification-container', "Contact Saved");
return $externalId;
}
$this->openCiviPage('event/add', 'reset=1&action=add', '_qf_EventInfo_upload-bottom');
- // Let's start filling the form with values.
$this->select("event_type_id", "value={$params['event_type_id']}");
// Attendee role s/b selected now.
$this->click("_qf_Registration_upload-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Saved");
+ $this->waitForText('crm-notification-container', "Saved");
// verify event input on info page
// start at Manage Events listing