Merge pull request #1440 from kurund/webtest-fixes
[civicrm-core.git] / tests / phpunit / WebTest / Profile / ProfileGroupSubscriptionTest.php
index 6b10ca9f66c9b4b08c533ad4289b7f0e7b71dd3d..94fec4f6d52335156877a1f7addac881f7fc2ef5 100644 (file)
@@ -116,7 +116,8 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     // assert for subscription message
-    $this->assertElementContainsText('css=div.messages', "Your subscription request has been submitted for group ", "Subscription message is not shown");
+    $this->waitForText('messages', "Your subscription request has been submitted for group ",
+      "Subscription message is not shown");
 
     //check if profile is saved
     $this->assertElementContainsText('css=span.msg-text', 'Your information has been saved.', 'Profile is not saved');