From 9bdd2fbdb1394e5de11a412cd32c9ef7eaa7ae0e Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Thu, 9 Oct 2014 14:11:21 +0530 Subject: [PATCH] webtest fixes --- tests/phpunit/WebTest/Event/ParticipantCountTest.php | 2 +- tests/phpunit/WebTest/Event/PricesetMaxCountTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Event/ParticipantCountTest.php b/tests/phpunit/WebTest/Event/ParticipantCountTest.php index edf51c51ad..ff8224d3e9 100644 --- a/tests/phpunit/WebTest/Event/ParticipantCountTest.php +++ b/tests/phpunit/WebTest/Event/ParticipantCountTest.php @@ -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() { diff --git a/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php b/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php index 26cfd4316a..02e8afe874 100644 --- a/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php +++ b/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php @@ -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++; -- 2.25.1