$enabled_rows =
$page->
findAll('css', 'tr.views-ui-list-enabled'
);
$enabled_rows =
$this->
filterVisibleElements($enabled_rows);
$disabled_rows =
$page->
findAll('css', 'tr.views-ui-list-disabled'
);
$disabled_rows =
$this->
filterVisibleElements($disabled_rows);
$this->
assertCount($content_views_count,
$enabled_rows);
$this->
assertCount($disabled_views_count,
$disabled_rows);
// Reset the search string and check that we are back to the initial stage.
$search_input->
setValue(''
);
// Add a backspace to trigger the keyUp event.
$search_input->
keyUp(8
);
$enabled_rows =
$page->
findAll('css', 'tr.views-ui-list-enabled'
);
$enabled_rows =
$this->
filterVisibleElements($enabled_rows);
$disabled_rows =
$page->
findAll('css', 'tr.views-ui-list-disabled'
);
$disabled_rows =
$this->
filterVisibleElements($disabled_rows);
$this->
assertCount($enabled_views_count,
$enabled_rows);
$this->
assertCount($disabled_views_count,
$disabled_rows);
// Disable a View and see if it moves to the disabled listing.
$enabled_view =
$page->
find('css', 'tr.views-ui-list-enabled'
);