From: jitendrapurohit Date: Wed, 30 Mar 2016 05:58:15 +0000 (+0530) Subject: webtest to check CRM-18284 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=250c1e1f27bb68f9a58451c2320a1c6b3fcb4094;p=civicrm-core.git webtest to check CRM-18284 --- 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