From: JKingsnorth Date: Fri, 6 Nov 2015 10:10:10 +0000 (+0000) Subject: CRM-17512 Fix webtests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d29fea0e16f4721d7c21d9d14129305801818eb;p=civicrm-core.git CRM-17512 Fix webtests --- diff --git a/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php b/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php index aebd3294df..4d965f383a 100644 --- a/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php +++ b/tests/phpunit/WebTest/Event/PricesetMaxCountTest.php @@ -177,7 +177,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 2 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 2 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -370,7 +370,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 4 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 4 spaces are available for this option.')); $this->select("price_{$selectFieldId}", "value={$selectFieldOp1}"); @@ -400,7 +400,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info and register $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 2 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 2 spaces are available for this option.')); // fill correct value and register $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -563,7 +563,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 6 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 6 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -584,7 +584,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_1_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 6 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 6 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '3'); @@ -605,7 +605,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_2_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 6 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 6 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -644,7 +644,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 2 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 2 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -670,7 +670,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_1_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 2 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 2 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -840,7 +840,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 12 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 12 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -861,7 +861,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_1_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 12 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 12 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '3'); @@ -882,7 +882,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_2_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 12 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 12 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -921,7 +921,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { // fill billing related info $this->_fillRegisterWithBillingInfo(); - $this->assertStringsPresent(array('Sorry, currently only 4 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 4 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1'); @@ -947,7 +947,7 @@ class WebTest_Event_PricesetMaxCountTest extends CiviSeleniumTestCase { $this->click('_qf_Participant_1_next-Array'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->assertStringsPresent(array('Sorry, currently only 4 seats are available for this option.')); + $this->assertStringsPresent(array('Sorry, currently only 4 spaces are available for this option.')); // fill correct value for text field $this->type("xpath=//input[@id='price_{$textFieldId}']", '1');