From 57c2bdf060ac8cbc3d40b8a41225528f691a822a Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 14 Oct 2014 12:42:47 +0530 Subject: [PATCH] Webtest fix --- tests/phpunit/WebTest/Event/ParticipantSearchTest.php | 4 ++-- tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/WebTest/Event/ParticipantSearchTest.php b/tests/phpunit/WebTest/Event/ParticipantSearchTest.php index 0fb93d672a..cb6a4bbd02 100644 --- a/tests/phpunit/WebTest/Event/ParticipantSearchTest.php +++ b/tests/phpunit/WebTest/Event/ParticipantSearchTest.php @@ -150,12 +150,12 @@ class WebTest_Event_ParticipantSearchTest extends CiviSeleniumTestCase { // visit event search page $this->openCiviPage("event/search", "reset=1"); + $eventTypeName = 'Fundraiser'; + $this->select2("event_type_id", $eventTypeName); $this->select('event_relative', "label=Choose Date Range"); $this->webtestFillDate('event_start_date_low', '-2 year'); $this->webtestFillDate('event_end_date_high', '+1 year'); - $eventTypeName = 'Fundraiser'; - $this->select2("event_type_id", $eventTypeName); $this->clickLink("_qf_Search_refresh", "search-status"); diff --git a/tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php b/tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php index 28e2729961..c4e56352cc 100644 --- a/tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php +++ b/tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php @@ -200,10 +200,10 @@ class WebTest_Member_OfflineMembershipRenewTest extends CiviSeleniumTestCase { // page was loaded $this->waitForTextPresent($sourceText); - $this->waitForElementPresent("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span/a[text()='View']"); + $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[9]/span[1]/a[1][text()='View']"); // click through to the membership view screen - $this->click("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span/a[text()='View']"); + $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[9]/span[1]/a[1][text()='View']"); $this->waitForElementPresent('_qf_MembershipView_cancel-bottom'); -- 2.25.1