nuhkoca
12/12/2022, 9:55 PMPaparazzi
for snapshot testing but components that use animation are captured as empty. We tried to use InstantAnimationsRule
but it still doesn’t work. Is there any way to use Paparazzi with animated components?nuhkoca
12/12/2022, 9:55 PM...
@get:Rule
val snapshotTesting = snapshotTestingRule()
@get:Rule
val instantAnimationsRule = InstantAnimationsRule()
protected fun snapshot(
name: String? = null,
content: @Composable () -> Unit
) {
snapshotTesting.unsafeUpdateConfig(
deviceConfig = TRDevices.Pixel5.copy(screenHeight = 1, softButtons = false)
)
snapshotTesting.snapshot(name = name) { ThemedContent { content() } }
...
agrosner
12/12/2022, 10:50 PMnuhkoca
12/12/2022, 11:21 PManimateContentSize
modifier, as well?agrosner
12/12/2022, 11:36 PMnuhkoca
12/13/2022, 9:23 AM