Merge pull request #9566 from totten/master-19690-layout
[civicrm-core.git] / tests / phpunit / WebTest / Contact / SearchTest.php
index ba536cb43c3188ba3c9c86ba9829a0bd10ca33f2..5e5c529ce14bb58ff36f6b644c5a6c1b87f6569b 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | 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