Fixed some contribution pages
[civicrm-core.git] / tests / phpunit / WebTest / Contact / ProfileChecksumTest.php
index 0a52c52debf25ac5903f953d86aa6ea6f98abd7d..23910827af1798785c9a4bf3c799242c897c6cc9 100644 (file)
@@ -112,8 +112,8 @@ class WebTest_Contact_ProfileChecksumTest extends CiviSeleniumTestCase {
     $this->webtestLogout();
 
     // Go to edit profile page of the created contact.
-    $this->openCiviPage("profile/edit", "id={$contactId}&gid={$profileId}&reset=1&cs={$cs}");
-    $this->assertStringsPresent(array($profileName));
+    $this->openCiviPage("profile/edit", "id={$contactId}&gid={$profileId}&reset=1&cs={$cs}", NULL);
+    $this->waitForTextPresent($profileName);
 
     // Check all profile fields, update their values.
     foreach ($fields as $field) {
@@ -130,7 +130,7 @@ class WebTest_Contact_ProfileChecksumTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad(2 * $this->getTimeoutMsec());
 
     // Check profile view page.
-    $this->assertStringsPresent(array($profileName));
+    $this->waitForTextPresent($profileName);
 
     // Check updated values of all fields.
     $checkFieldValues = array();