From: jitendrapurohit Date: Wed, 25 Mar 2015 13:03:55 +0000 (+0530) Subject: webtest fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0391e7ab6fe996de7d7fca9259addf51b090255a;p=civicrm-core.git webtest fixes --- diff --git a/tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php b/tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php index 85fc173580..82ead1ca0c 100644 --- a/tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php +++ b/tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php @@ -219,7 +219,7 @@ class WebTest_Campaign_SurveyUsageScenarioTest extends CiviSeleniumTestCase { $this->waitForElementPresent("_qf_Reserve_done_reserve-bottom"); $this->click("_qf_Reserve_done_reserve-bottom"); $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->waitForText('crm-notification-container', "2 Contact\(s\) have been reserved"); + $this->waitForText('crm-notification-container', "2 contacts have been reserved."); // Interview Respondents $this->openCiviPage("survey/search", "reset=1&op=interview", "_qf_Search_refresh"); @@ -273,7 +273,7 @@ class WebTest_Campaign_SurveyUsageScenarioTest extends CiviSeleniumTestCase { $this->select('task', "Reserve Respondents"); $this->waitForElementPresent("_qf_Reserve_done_reserve-bottom"); $this->click("_qf_Reserve_done_reserve-bottom"); - $this->waitForText('crm-notification-container', "1 Contact\(s\) have been reserved"); + $this->waitForText('crm-notification-container', "1 contact has been reserved."); // Release Respondents $this->openCiviPage("survey/search", "reset=1&op=release", "_qf_Search_refresh"); @@ -499,7 +499,7 @@ class WebTest_Campaign_SurveyUsageScenarioTest extends CiviSeleniumTestCase { $this->waitForElementPresent('_qf_Reserve_done_reserve-bottom'); $this->clickLink('_qf_Reserve_done_reserve-bottom', 'access'); - $this->waitForText('crm-notification-container', "2 Contact\(s\) have been reserved"); + $this->waitForText('crm-notification-container', "2 contacts have been reserved."); $this->openCiviPage("report/survey/detail", "reset=1", '_qf_SurveyDetails_submit'); diff --git a/tests/phpunit/WebTest/Event/AddPricesetTest.php b/tests/phpunit/WebTest/Event/AddPricesetTest.php index dbf85db342..349fbee8e5 100644 --- a/tests/phpunit/WebTest/Event/AddPricesetTest.php +++ b/tests/phpunit/WebTest/Event/AddPricesetTest.php @@ -711,7 +711,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase { // Enter Event Title, Summary and Description $this->select("event_type_id", "value=4"); $this->select("default_role_id", "value=1"); - $this->type("template_title", "Test Event"); + $this->type("title", "Test Event"); $this->type("summary", "This is a great conference. Sign up now!"); $this->click("_qf_EventInfo_upload-bottom");