webtest fixes
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 25 Mar 2015 13:03:55 +0000 (18:33 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 25 Mar 2015 13:03:55 +0000 (18:33 +0530)
tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php
tests/phpunit/WebTest/Event/AddPricesetTest.php

index 85fc173580b68147dcef48c05ed6f4df57484cc7..82ead1ca0cf4d23f1b5a61c4e51ca2377127f8b1 100644 (file)
@@ -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');
 
index dbf85db3428ab5b83fb11ad9342555eecd2a41f9..349fbee8e5ef08456b365faa33b3f08dba7de810 100644 (file)
@@ -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");