/** * @param string $filterName * * @Then /^I show the filter "([^"]*)"$/ */ public function iShowTheFilter($filterName) { if (strtolower($filterName) !== 'category') { $this->datagrid->showFilter($filterName); $this->wait(); $this->datagrid->assertFilterVisible($filterName); } }
/** * @param string $filterName * * @Then /^I show the filter "([^"]*)"$/ */ public function iShowTheFilter($filterName) { if (false === strpos(strtolower($filterName), 'category')) { $this->wait(30000, '$("div.filter-box").length > 0;'); $this->datagrid->showFilter($filterName); $this->wait(); $this->datagrid->assertFilterVisible($filterName); } }