$page->
fillField('override[controls][group]', 'content'
);
$only_content_rows =
$this->
waitForOnlyContentRows();
$this->
assertTrue($only_content_rows);
// Search for a specific title and test that this is now the only one shown.
$page->
fillField('override[controls][options_search]', 'body (body)'
);
$filtering_done =
$this->
waitForVisibleElementCount(1, 'tr.filterable-option'
);
$this->
assertTrue($filtering_done);
// Select the body field and apply the choice.
$page->
checkField('name[node__body.body_value]'
);
$page->
find('css', '.ui-dialog .ui-dialog-buttonpane'
)->
pressButton('Add and configure filter criteria'
);
$web_assert->
waitForField('options[expose_button][checkbox][checkbox]'
);
// Expose the filter.
$page->
findField('options[expose_button][checkbox][checkbox]'
)->
click();
$web_assert->
waitForField('options[expose][label]'
);
$page->
find('css', '.ui-dialog .ui-dialog-buttonpane'
)->
pressButton('Apply'
);
$web_assert->
waitForText('Content: body (exposed)'
);
$web_assert->
responseContains('Content: body (exposed)'
);
} /**
* Removes any non-visible elements from the passed array.
*
* @param \Behat\Mink\Element\NodeElement[] $elements
* The elements to filter.
*
* @return \Behat\Mink\Element\NodeElement[]
* The filtered elements.
*/