SearchPanelInteractions

Interactions for instrumented tests involving the search panel of the stock media frontend.

This object contains ready-to-use Espresso, ViewInteractions and waiters for the media search panel of the stock media frontend.

Properties

Link copied to clipboard

Matcher for the container of the search results in the search panel of a source.

Functions

Link copied to clipboard
fun performSearch(query: String, doSubmit: Boolean = true): ViewInteraction

ViewInteraction to enter a query in the input field of a displayed media search panel.

Link copied to clipboard

ViewInteraction to update the query to newQuery in the input field of a displayed search panel of a source.

Link copied to clipboard

ViewInteraction to expect the media search panel of a source to be shown.

Link copied to clipboard

ViewInteraction to expect that a media search panel's search field contains query.

Link copied to clipboard

ViewInteraction to expect that after searching, the search results contain at least resultCount results.