Fixed webtest for civi-4.6
[civicrm-core.git] / tests / phpunit / WebTest / Event / AddPricesetTest.php
index 8576c3a0a69c61a2326768a05980fc6e6439101e..0d0f2d9a723a6e76f07f712d8b8447f3bdadb72a 100644 (file)
@@ -711,6 +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->waitForAjaxContent();
     $this->type("title", "Test Event");
     $this->type("summary", "This is a great conference. Sign up now!");
 
@@ -730,8 +731,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]");
     $this->click("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]/ul/li[2]/a");
     //assert the message
-    $this->waitForText('price_set_used_by',
-      "it is currently in use by one or more active events or contribution pages or contributions or event templates.");
+    $this->waitForText('price_set_used_by', "Unable to delete the 'Test Field' Price Field - it is currently in use by one or more active events or contribution pages or contributions or event templates. If you no longer want to use this price set, click the event title below, and modify the fees for that event.");
 
     //check the delete for priceset
     $this->openCiviPage("admin/price", "reset=1");