fixes WebTest_Profile_ProfileGroupSubscriptionTest
authorkurund <kurund@civicrm.org>
Wed, 14 Aug 2013 07:07:52 +0000 (12:37 +0530)
committerkurund <kurund@civicrm.org>
Wed, 14 Aug 2013 07:07:52 +0000 (12:37 +0530)
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');