Change messages to wait instead of assert
[civicrm-core.git] / tests / phpunit / WebTest / Member / OnlineMembershipCreateTest.php
index 04033dfdb95987cb8fca3c796bd1ff82292cc6dd..708aea32e67dd5400e20dbf50706a4daac93ebe4 100644 (file)
@@ -104,7 +104,7 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase {
     $this->click("membership_type_$memTypeId2");
     $this->clickLink('_qf_MembershipBlock_next', '_qf_MembershipBlock_next-bottom');
     $text = "'MembershipBlock' information has been saved.";
-    $this->assertElementContainsText('crm-notification-container', $text, 'Missing text: ' . $text);
+    $this->waitForText('crm-notification-container', $text);
 
     //logout
     $this->webtestLogout();