Webtest fix
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Tue, 14 Oct 2014 07:12:47 +0000 (12:42 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Tue, 14 Oct 2014 07:12:47 +0000 (12:42 +0530)
tests/phpunit/WebTest/Event/ParticipantSearchTest.php
tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php

index 0fb93d672ac81380a31c04b5c2a4c93a858d8448..cb6a4bbd021eb8bc55595d76ccc12c9763e0fe8d 100644 (file)
@@ -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");
 
index 28e2729961e826f00053f7a3e048069f20b9c6a5..c4e56352ccb75a987bb5ab312d58fe98e3944de3 100644 (file)
@@ -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');