Closed linean closed 3 weeks ago
Debugging further I've noticed there is an issue with V_SCROLL
configuration that I'm using. It causes HorizontalPager to crash but also breaks many other screenshots.
E.g. this records a screenshot that is 1 pixel wide
@get:Rule
val paparazzi = Paparazzi(
renderingMode = V_SCROLL,
deviceConfig = DeviceConfig.PIXEL_6.copy(
softButtons = false,
screenHeight = 1,
),
)
@Test
fun brokenVScroll() {
paparazzi.snapshot {
Text(
text = "Broken V_SCROLL",
modifier = Modifier.background(Color.White)
)
}
}
After more digging I've found that hack from https://github.com/cashapp/paparazzi/issues/383 stopped working and now it's recommended to use shrink
mode https://github.com/cashapp/paparazzi/pull/497. I'm going to migrate my code.
Description When updating Paparazzi from version 1.3.1 to 1.3.4, I noticed that some of the screenshots containing HorizontalPager stopped working. Since HorizontalPager is experimental, I suspect the issue may lie there, but I would like to consult about it here. It seems that some measurements are failing, and these failures appear to be related to the content padding set for the pager.
Steps to Reproduce Run the following test:
As a result you'll get:
The same test works fine in 1.3.1.
Expected behavior Test passes
Additional information: