From 250c1e1f27bb68f9a58451c2320a1c6b3fcb4094 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 30 Mar 2016 11:28:15 +0530 Subject: [PATCH] webtest to check CRM-18284 --- tests/phpunit/WebTest/Contact/SearchTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Contact/SearchTest.php b/tests/phpunit/WebTest/Contact/SearchTest.php index e298a6acd4..1357c28f75 100644 --- a/tests/phpunit/WebTest/Contact/SearchTest.php +++ b/tests/phpunit/WebTest/Contact/SearchTest.php @@ -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 -- 2.25.1