From 4990eea118d2c722c0ec1259931b92bb2cfa8760 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Tue, 17 Nov 2015 19:15:27 +0530 Subject: [PATCH] Minor fix --- tests/phpunit/WebTest/Event/AddEventTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Event/AddEventTest.php b/tests/phpunit/WebTest/Event/AddEventTest.php index d8c997bd10..688f70bafd 100644 --- a/tests/phpunit/WebTest/Event/AddEventTest.php +++ b/tests/phpunit/WebTest/Event/AddEventTest.php @@ -1034,7 +1034,9 @@ WHERE ceft.entity_id = %1 AND ceft.entity_table = 'civicrm_contribution'"; //Login with TestUser1 $this->webtestLogin($TestUser1, 'Test12345'); $this->openCiviPage("event/manage", "reset=1"); - $this->click("xpath=//div[@id='event_status_id']/div[@class='dataTables_wrapper no-footer']/table/tbody//tr/td/a[contains(text(), '{$eventName}')]/../..//td/div/span/ul/li/a"); + $this->type("title", $eventName); + $this->click("_qf_SearchEvent_refresh"); + $this->waitForPageToLoad(); $this->_testAddReminder($eventName); $this->webtestLogout(); @@ -1057,6 +1059,7 @@ WHERE ceft.entity_id = %1 AND ceft.entity_table = 'civicrm_contribution'"; "edit-{$roleId[5]}-access-civicrm", "edit-{$roleId[5]}-access-civievent", ); + $this->changePermissions($permissions); //Create TestUser2 $this->open($this->sboxPath . "admin/people/create"); -- 2.25.1