From: Ravish Nair Date: Mon, 1 Apr 2013 11:15:11 +0000 (+0530) Subject: -- webtest improvement made based on the break on server X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=35c48e1ad19db75d1a8f1143ba7bc4da0ffa122c;p=civicrm-core.git -- webtest improvement made based on the break on server --- diff --git a/tests/phpunit/WebTest/Activity/StandaloneAddTest.php b/tests/phpunit/WebTest/Activity/StandaloneAddTest.php index f07517ca50..de875dd7bd 100644 --- a/tests/phpunit/WebTest/Activity/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Activity/StandaloneAddTest.php @@ -127,11 +127,10 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase { $this->type("followup_activity_subject", "This is subject of schedule follow-up activity"); // Clicking save. - $this->click("_qf_Activity_upload"); - $this->waitForPageToLoad($this->getTimeoutMsec()); + $this->clickLink('_qf_Activity_upload'); // 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."); $this->openCiviPage("activity/search", "reset=1", "_qf_Search_refresh");