-- webtest improvement made based on the break on server
authorRavish Nair <ravish.nair@webaccess.co.in>
Mon, 1 Apr 2013 11:15:11 +0000 (16:45 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Mon, 1 Apr 2013 11:15:11 +0000 (16:45 +0530)
tests/phpunit/WebTest/Activity/StandaloneAddTest.php

index f07517ca50785a4d165460e984e02399d8fb855b..de875dd7bd11b61d45d48166b8ab3b79a3e83172 100644 (file)
@@ -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");