webtest fixes
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Thu, 9 Oct 2014 08:41:21 +0000 (14:11 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Thu, 9 Oct 2014 08:41:21 +0000 (14:11 +0530)
tests/phpunit/WebTest/Event/ParticipantCountTest.php
tests/phpunit/WebTest/Event/PricesetMaxCountTest.php

index edf51c51ade39a4aaf04742c0ec233c93f766131..ff8224d3e93bd8716a23e15c1dde3d60bc12e5f7 100644 (file)
@@ -106,7 +106,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     // verify number of registered participants
-    $this->assertStringsPresent(array('2 Result'));
+    $this->assertTrue($this->isTextPresent('2 Result'));
   }
 
   function testParticipantCountWithPriceset() {
index 26cfd4316af93fbc103412a9c8e73e164dd96f11..02e8afe874132273fdc53b9cce3feda9d388e2f1 100644 (file)
@@ -1074,6 +1074,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase {
       else {
         $this->click('_qf_Field_next-bottom');
       }
+      $this->waitForAjaxContent();
       $this->waitForText('crm-notification-container', "Price Field '$label' has been saved.");
 
       $count++;