Merge pull request #9560 from aydun/CRM-19754
[civicrm-core.git] / tests / phpunit / WebTest / Contact / SearchTest.php
index e298a6acd4ccc5e03ce32afda545523db0444be7..5e5c529ce14bb58ff36f6b644c5a6c1b87f6569b 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -245,7 +245,11 @@ class WebTest_Contact_SearchTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('css=.crm-search-results > table.row-highlight', $sortName);
     $this->assertElementContainsText('css=.crm-search-results > table.row-highlight', $childSortName);
 
-    // select to export all the contasct from search result
+    // CRM-18284 - Test Task after sorting with state
+    $this->clickAjaxLink("xpath=//div[@class='crm-search-results']//table/thead/tr//th/a[contains(text(), 'State')]");
+    $this->waitForElementPresent("xpath=//div[@class='crm-search-results']//table/thead/tr//th/a[contains(text(), 'State')]");
+
+    // select to export all the contact from search result
     $this->click("CIVICRM_QFID_ts_all_4");
 
     // Select the task action to export