Webtest fix
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 1 Jul 2015 21:51:15 +0000 (03:21 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 1 Jul 2015 21:51:15 +0000 (03:21 +0530)
tests/phpunit/WebTest/Contact/SearchBuilderTest.php

index dfab320997de3c49ff5845a259f99370845b5aae..6ccb1be70aaca48db7146d71bc785d85abd5a874 100644 (file)
@@ -523,18 +523,19 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
 
     // Find Membership
     $this->openCiviPage("member/search", "reset=1", "_qf_Search_refresh");
-    $this->click("xpath=//label[text()='{$membershipTypes['membership_type']}']");
+    $this->multiselect2("membership_type_id", array($membershipTypes['membership_type']));
     $this->clickLink('_qf_Search_refresh');
     $this->waitForText('search-status', "2 Results");
 
     $this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
-    $this->click("xpath=//label[text()='New']");
-    $this->click("xpath=//label[text()='Grace']");
+    $this->multiselect2("status_id", array("New", "Grace"));
     $this->clickLink('_qf_Search_refresh');
     $this->waitForText('search-status', "2 Results");
 
+    $this->openCiviPage("member/search", "reset=1", "_qf_Search_refresh");
     $this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
-    $this->click("xpath=//label[text()='New']");
+    $this->multiselect2("membership_type_id", array($membershipTypes['membership_type']));
+    $this->multiselect2("status_id", array("New"));
     $this->clickLink('_qf_Search_refresh');
     $this->waitForText('search-status', "1 Result");
   }