$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Contact Saved");
+ $this->waitForText('crm-notification-container', "Contact Saved");
}
function testHouseholdAdd() {
$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Contact Saved");
+ $this->waitForText('crm-notification-container', "Contact Saved");
}
function testOrganizationAdd() {
$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Contact Saved");
+ $this->waitForText('crm-notification-container', "Contact Saved");
}
function testIndividualAddWithSharedAddress() {
$this->click("_qf_Edit_next");
// Is new contact created?
- $this->assertElementContainsText('crm-notification-container', "$currentEmployer has been created.",
- "Status message didn't show up after saving!"
- );
+ $this->waitForText('crm-notification-container', "$currentEmployer has been created.");
//make sure shared address is selected
$this->waitForElementPresent('selected_shared_address-1');
$this->click("_qf_Edit_next");
// Is new contact created?
- $this->assertElementContainsText('crm-notification-container', "$sharedHousehold has been created.",
- "Status message didn't show up after saving!"
- );
+ $this->waitForText('crm-notification-container', "$sharedHousehold has been created.");
//make sure shared address is selected
$this->waitForElementPresent('selected_shared_address-2');
$this->click("_qf_Contact_upload_view");
$this->waitForPageToLoad($this->getTimeoutMsec());
$name = $this->getText("xpath=//div[@class='crm-summary-display_name']");
- $this->assertElementContainsText('crm-notification-container', "$name has been created.");
+ $this->waitForText('crm-notification-container', "$name has been created.");
//make sure current employer is set
$this->verifyText("xpath=id('contactinfo-block')/div/div/div[2]/div", 'Employer');