$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");
$this->type("email_1_email", $email2);
$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");
$this->waitForPageToLoad($this->getTimeoutMsec());
// Is status message correct?
- $this->assertTrue($this->isTextPresent("Activity '$subject' has been saved."), "Status message didn't show up after saving!");
+ $this->waitForText('crm-notification-container', "Activity '$subject' has been saved.", "Status message didn't show up after saving!");
}
function testMergeTest() {
$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");
// Clicking save.
$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");
$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");
$this->click("_qf_Contact_refresh_dedupe");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertTrue($this->isTextPresent("One matching contact was found. You can View or Edit the existing contact."));
+ $this->waitForText('crm-notification-container', "One matching contact was found. You can View or Edit the existing contact.");
$this->click("_qf_Contact_upload_duplicate");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('crm-notification-container', "Contact Saved");