ExpandedProcessPanelInteractions

object ExpandedProcessPanelInteractions

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

This object contains ready-to-use Espresso, ViewInteractions and waiters for the full sized 'Now Playing' panel of the stock media frontend.

Properties

Link copied to clipboard
val thatIsExpandedNowPlayingPanel: Matcher<View>

Matcher for the expanded now playing panel.

val thatIsExpandedNowPlayingPanelDismissButton: Matcher<View>

Matcher for the 'dismiss' button in the expanded now playing panel.

val thatIsExpandedNowPlayingPanelPrimaryControls: Matcher<View>

Matcher for the container of primary playback controls in the expanded now playing panel.

Link copied to clipboard
val thatIsExpandedNowPlayingPanelQueue: Matcher<View>

Matcher for the MediaContentView showing the active queue in the expanded now playing panel.

val thatIsExpandedNowPlayingPanelSecondaryControls: Matcher<View>

Matcher for the container of primary playback controls in the expanded now playing panel.

Functions

Link copied to clipboard
fun tapDismiss(): ViewInteraction

ViewInteraction to tap the 'dismiss' button of the expanded now playing panel.

Link copied to clipboard
fun tapMetadataGroup(): ViewInteraction

ViewInteraction to tap the metadata of the expanded now playing panel.

Link copied to clipboard
fun tapOnTab(@StringRes tabNameResource: Int): ViewInteraction

ViewInteraction to tap the tab of the expanded now playing panel. Such as 'Now Playing' or 'Queue'.

Link copied to clipboard
fun thatIsDisplayedTabBar(@StringRes withName: Int): Matcher<View>

Matcher for the tab bar in the expanded now playing panel.

Link copied to clipboard
fun thatIsExpandedNowPlayingPanelQueueItem(atIndex: Number): Matcher<View>

Matcher for queue item at position atIndex in the MediaContentView showing the active queue in the expanded now playing panel.

Link copied to clipboard
fun waitForExpandedNowPlayingPanel(visible: Boolean = true): ViewInteraction

ViewInteraction to expect the expanded now playing panel exists in the specified visible state.

ViewInteraction to expect the expanded process panel does not exist.

Link copied to clipboard
fun waitForNowPlayingQueue(): ViewInteraction

ViewInteraction to expect the expanded now playing panel to be showing the queue.

Link copied to clipboard
fun waitForNowPlayingQueueHidden(): ViewInteraction

ViewInteraction to expect the expanded now playing panel to not be showing the queue.

Link copied to clipboard
fun waitForNowPlayingTabs(@StringRes names: List<Int>, selectedIndex: Int)

Helper method to expect specific tab names and a selectedIndex in the now playing panel.