Skip to content

Commit

Permalink
Add Volume not connected a11y test (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Oct 17, 2023
1 parent 6e6b269 commit 44dd7a0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,22 @@ class VolumeScreenA11yScreenshotTest : ScreenshotBaseTest(
)
}
}

@Test
fun volumeScreenNotConnected() {
val volumeState = VolumeState(
current = 0,
max = 100,
)
// Media Router returns "Phone"
val audioOutput = AudioOutput.WatchSpeaker("id", "Phone", false)

screenshotTestRule.setContent(takeScreenshot = true) {
VolumeScreenTestCase(
colors = MaterialTheme.colors,
volumeState = volumeState,
audioOutput = audioOutput,
)
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44dd7a0

Please sign in to comment.