Merge pull request #4749 from atif-shaikh/CRM-15729
[civicrm-core.git] / tests / phpunit / WebTest / Event / EventListingTest.php
index 380e544117a46ff6e7ed068adb1657ca405022a6..dde4a8004df4a6297ae33f0c265be8e3a6a82e52 100644 (file)
@@ -1,5 +1,9 @@
 <?php
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Event_EventListingTest
+ */
 class WebTest_Event_EventListingTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -109,6 +113,11 @@ class WebTest_Event_EventListingTest extends CiviSeleniumTestCase {
     $this->waitForTextPresent("The block settings have been updated.");
   }
 
+  /**
+   * @param $eventTitle
+   * @param $startdate
+   * @param $enddate
+   */
   function _testCreateEvent($eventTitle, $startdate, $enddate) {
 
     $this->openCiviPage("event/add", "reset=1&action=add");
@@ -151,7 +160,7 @@ class WebTest_Event_EventListingTest extends CiviSeleniumTestCase {
 
     // Wait for "saved" status msg
     $this->waitForPageToLoad($this->getTimeoutMsec());
-    $this->waitForTextPresent("'Location' information has been saved.");
+    $this->waitForText("crm-notification-container", "'Event Location' information has been saved.");
   }
 }