Webtest fixes
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 9 Oct 2014 14:19:30 +0000 (19:49 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 9 Oct 2014 14:19:30 +0000 (19:49 +0530)
tests/phpunit/WebTest/Event/AddEventTest.php
tests/phpunit/WebTest/Event/ParticipantSearchTest.php

index 16741183356e9895c1697a2083b0905b6553f426..e02f35e78ed5b7409b860f7cc406c6f12a77d8fa 100644 (file)
@@ -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(),
index 3b5d1312dcdd7b9528cd1316debee453e3973c42..0fb93d672ac81380a31c04b5c2a4c93a858d8448 100644 (file)
@@ -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",