webtest to check CRM-18284
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 30 Mar 2016 05:58:15 +0000 (11:28 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 30 Mar 2016 05:58:15 +0000 (11:28 +0530)
tests/phpunit/WebTest/Contact/SearchTest.php

index e298a6acd4ccc5e03ce32afda545523db0444be7..1357c28f754e889f4b00ddc6a0004c6641599a5c 100644 (file)
@@ -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