From 35c48e1ad19db75d1a8f1143ba7bc4da0ffa122c Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Mon, 1 Apr 2013 16:45:11 +0530 Subject: [PATCH] -- webtest improvement made based on the break on server --- tests/phpunit/WebTest/Activity/StandaloneAddTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.25.1