paparazzi
paparazzi copied to clipboard
compose bottomsheet does not screenshot
Description Take a screenshot of a bottomsheet Steps to Reproduce Add a bottomsheet in compose Expected behavior Get the screenshot of the modal
Problem The problem is that as a bottomshet to be displayed has an animation where it appears after a second, the screenshot obtained is a completely white screen
@rulogarcillan thanks for the issue, however it's a bit sparse. can you please provide a repro? it's hard to know if this is a byproduct of how you set up the view or a true Paparazzi bug.
Same here:
` class ModalBottomSheetTest : BaseScreenshotTest() {
@Test
fun testModalBottomSheet() {
paparazzi.snapshot {
ModalBottomSheetTestCase()
}
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun ModalBottomSheetTestCase() {
ModalBottomSheet(
onDismissRequest = {}
) {
Text(text = "Content")
}
}
} `