webtest fixes for --filter=testSearchBuilderMembershipType WebTest_Contact_SearchBuil...
authorkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 17:24:11 +0000 (22:54 +0530)
committerkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 17:24:11 +0000 (22:54 +0530)
tests/phpunit/WebTest/Contact/SearchBuilderTest.php

index 849896772f00af7aad129c9681e3bc93c4541285..9c45c5435651605178bab16941090d138321241a 100644 (file)
@@ -479,9 +479,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     $this->clickLink('_qf_Builder_refresh');
     $this->waitForText('search-status', "1 Contact");
 
-    $this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
-    $this->waitForElementPresent("xpath=//span[@id='crm_search_value_1_1']/select");
-    $this->select("xpath=//span[@id='crm_search_value_1_1']/select", "label=Grace");
+    $this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('Grace'));
     $this->clickLink('_qf_Builder_refresh');
     $this->waitForText('search-status', "1 Contact");