DashboardInteractions

object DashboardInteractions

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

This object contains ready-to-use Espresso, ViewInteractions and waiters for the stock media frontend dashboard, where users can choose a source to browse.

Properties

Link copied to clipboard
val thatIsLoadedSourceList: Matcher<View>

Matcher for the source selection recycler view in the dashboard.

Link copied to clipboard
val thatIsSourceList: Matcher<View>

Matcher for the source selection recycler view in the dashboard.

Functions

Link copied to clipboard
fun selectSource(packageName: String): ViewInteraction

ViewInteraction to select a source in the media dashboard.

Link copied to clipboard
fun waitForAvailableSourcesInDashboard(minimumSourceCount: Int): ViewInteraction

ViewInteraction to expect a minimumSourceCount in the media dashboard.