SearchPanelInteractions

object 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
val thatIsMediaSearchPanel: Matcher<View>

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

Functions

Link copied to clipboard
fun performSearch(query: String): ViewInteraction

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

Link copied to clipboard
fun updateSearchQuery(newQuery: String): ViewInteraction

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

Link copied to clipboard
fun waitForMediaSearchPanel(): ViewInteraction

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

Link copied to clipboard
fun waitForSearchQueryMatches(query: String): ViewInteraction

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

Link copied to clipboard
fun waitForSearchResultCount(resultCount: Int): ViewInteraction

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