TaskProcessPanelInteractions

object TaskProcessPanelInteractions

Interactions for instrumented tests involving the TaskProcessPanel of the stock media frontend.

This object contains ready-to-use Espresso, ViewInteractions and waiters for the task process panel of the stock media frontend, which shows what is playing when the media frontend is open.

See MainProcessPanelInteractions for interactions related to the now playing panel shown while the frontend is closed.

Properties

Link copied to clipboard
val thatIsMediaTaskProcessPanel: Matcher<View>

Matcher for the task process panel displaying media information.

val thatIsVisibleTaskProcessPanelSkipBackward: Matcher<View>

Matcher for the 'skip backward' control shown in the task process panel.

Link copied to clipboard
val thatIsVisibleTaskProcessPanelSkipForward: Matcher<View>

Matcher for the 'skip forward' control shown in the task process panel.

val thatIsVisibleTaskProcessPanelTogglePlayButton: Matcher<View>

Matcher for the 'play/pause' control shown in the task process panel.

Functions

Link copied to clipboard
fun tapMetadataArea(): ViewInteraction

ViewInteraction to tap the metadata of the task process panel.

Link copied to clipboard
fun tapSkipBackward(): ViewInteraction

ViewInteraction to tap a 'skip backward' control of the task process panel.

Link copied to clipboard
fun tapSkipForward(): ViewInteraction

ViewInteraction to tap a 'skip forward' control of the task process panel.

Link copied to clipboard
fun tapTogglePlay(): ViewInteraction

ViewInteraction to press the play/pause button which is shown in the task process panel.

Link copied to clipboard
fun waitForTaskProcessPanel(exist: Boolean = true, visible: Boolean = true): ViewInteraction

ViewInteraction waiting for the task process panel of the media frontend to appear or disappear.

Link copied to clipboard
fun waitForTaskProcessPanelTogglePlay(state: IviPlaybackState): ViewInteraction

ViewInteraction to expect the play/pause button shown in the task process panel to be in state.

Link copied to clipboard
fun waitForTrackInTaskProcessPanel(title: String, subtitle: String? = null): ViewInteraction

ViewInteraction to expect a media with specified title and optional subtitle to be playing in the task process panel.