yschimke
03/20/2022, 8:27 PMprivate fun screenshot(screenshotName: String, block: @Composable () -> Unit) {
composeTestRule.setContent {
RememberTheMilkTheme {
Scaffold(timeText = {
TimeText(timeSource = FixedTimeSource)
}) {
block()
}
}
}
composeTestRule.onRoot().assertIsDisplayed()
val context = InstrumentationRegistry.getInstrumentation().context
val isScreenRound = context.resources.configuration.isScreenRound
Screengrab.screenshot(screenshotName, WearScreenshotStrategy(isRoundDevice = isScreenRound))
}
Thomas
03/21/2022, 12:49 PMyschimke
03/23/2022, 8:55 AMThomas
03/23/2022, 12:08 PMThomas
03/23/2022, 12:08 PMThomas
03/23/2022, 12:09 PM