X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FEventListingTest.php;h=dde4a8004df4a6297ae33f0c265be8e3a6a82e52;hb=63e91f559645ec20ff4bcce59ea8c5cad7ced61e;hp=be6693317e62345526df0190e18813041c467ad5;hpb=b1ab77668c372c6e3c626a6fa1d7bdef13eeae45;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/EventListingTest.php b/tests/phpunit/WebTest/Event/EventListingTest.php index be6693317e..dde4a8004d 100644 --- a/tests/phpunit/WebTest/Event/EventListingTest.php +++ b/tests/phpunit/WebTest/Event/EventListingTest.php @@ -1,5 +1,9 @@ openCiviPage("event/manage", "reset=1"); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$eventTitle1); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", $eventTitle1); $this->click("_qf_SearchEvent_refresh"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->assertFalse($this->isTextPresent("{$eventTitle1}")); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$eventTitle2); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", $eventTitle2); $this->click("_qf_SearchEvent_refresh"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->assertFalse($this->isTextPresent("{$eventTitle2}")); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$eventTitle3); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", $eventTitle3); $this->click("_qf_SearchEvent_refresh"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->waitForText("SearchEvent", "{$eventTitle3}"); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$eventTitle4); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", $eventTitle4); $this->click("_qf_SearchEvent_refresh"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->waitForText("SearchEvent", "{$eventTitle4}"); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",$eventTitle5); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", $eventTitle5); $this->click("_qf_SearchEvent_refresh"); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->waitForText("SearchEvent", "{$eventTitle5}"); - $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input",""); + $this->type("xpath=//div[@class='crm-block crm-form-block crm-event-searchevent-form-block']/table/tbody/tr/td/input", ""); //check if closed Event is present $this->waitForElementPresent('CIVICRM_QFID_1_eventsByDates'); @@ -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."); } }