From 87a7b76021571f379ecf03316b5f9ec745686aed Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 9 Oct 2014 19:49:30 +0530 Subject: [PATCH] Webtest fixes --- tests/phpunit/WebTest/Event/AddEventTest.php | 3 ++- tests/phpunit/WebTest/Event/ParticipantSearchTest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/WebTest/Event/AddEventTest.php b/tests/phpunit/WebTest/Event/AddEventTest.php index 1674118335..e02f35e78e 100644 --- a/tests/phpunit/WebTest/Event/AddEventTest.php +++ b/tests/phpunit/WebTest/Event/AddEventTest.php @@ -764,12 +764,13 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase { $participantEmails = array($primaryParticipant, $secParticipant, $thirdParticipant); $addtlPart = array($secParticipant, $thirdParticipant); $primaryParticipantInfo = - $this->_testOnlineRegistration($registerUrl, 2, $anonymous, FALSE, $participantEmails, "Test Processor"); + $this->_testOnlineRegistration($registerUrl, 2, $anonymous, FALSE, $participantEmails, "Test Processor"); $primaryDisplayName = "{$primaryParticipantInfo['first_name']} {$primaryParticipantInfo['last_name']}"; $this->webtestLogin(); $this->openCiviPage("event/search", "reset=1"); $this->select2("event_id", $eventTitle, FALSE); $this->clickLink('_qf_Search_refresh'); + $this->waitForElementPresent("xpath=//div[@id='participantSearch']/table/tbody//tr/td[3]/a"); $this->verifyText("xpath=//div[@id='participantSearch']/table/tbody//tr/td[3]/a[contains(text(), '{$secParticipant['last_name']}, {$secParticipant['first_name']}')]/../../td[6]", preg_quote('225.00')); $this->verifyText("xpath=//div[@id='participantSearch']/table/tbody//tr/td[3]/a[contains(text(), diff --git a/tests/phpunit/WebTest/Event/ParticipantSearchTest.php b/tests/phpunit/WebTest/Event/ParticipantSearchTest.php index 3b5d1312dc..0fb93d672a 100644 --- a/tests/phpunit/WebTest/Event/ParticipantSearchTest.php +++ b/tests/phpunit/WebTest/Event/ParticipantSearchTest.php @@ -108,7 +108,7 @@ class WebTest_Event_ParticipantSearchTest extends CiviSeleniumTestCase { $eventName = "Fall Fundraiser Dinner"; $this->select2("event_id", $eventName); - $this->clickLink("_qf_Search_refresh"); + $this->clickLink("_qf_Search_refresh", "search-status"); $stringsToCheck = array( "Event = $eventName", @@ -157,7 +157,7 @@ class WebTest_Event_ParticipantSearchTest extends CiviSeleniumTestCase { $eventTypeName = 'Fundraiser'; $this->select2("event_type_id", $eventTypeName); - $this->clickLink("_qf_Search_refresh"); + $this->clickLink("_qf_Search_refresh", "search-status"); $stringsToCheck = array( "Start Date - greater than or equal to", -- 2.25.1