PlaylistPanelInteractions

object PlaylistPanelInteractions

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

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

See BrowsingInteractions for more interactions related to browsing other types of content.

Properties

Link copied to clipboard
val thatIsPlaylistContainer: Matcher<View>

Matcher for a MediaContentView displaying a playlist while browsing a source.

Link copied to clipboard
val thatIsPlaylistPanelTogglePlayButton: Matcher<View>

Matcher for the play/pause button which is shown in a playlist content view.

Functions

Link copied to clipboard
fun tapPlaylistPanelTogglePlay(): ViewInteraction

ViewInteraction to press the play/pause button which is shown in a playlist content view.

Link copied to clipboard
fun waitForDisplayedPlaylistPanel(): ViewInteraction

ViewInteraction to expect a playlist browsing panel to be displayed.

Link copied to clipboard
fun waitForPlaylistPanelPlaybackControl(inState: IviPlaybackState): ViewInteraction

ViewInteraction to expect the play/pause button shown in a playlist content view to be in state inState.