cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.31k stars 215 forks source link

Fix GONE ComposeView's children appearing in accessibility legend #1658

Closed colinmarsch closed 3 weeks ago

colinmarsch commented 3 weeks ago

This bug was discovered through investigation into CBM-878 (internal Cash issue) where some content was erroneously appearing in the accessibility legend even though it wasn't being drawn on screen or accessible to Talkback when running the same scenario on device.

Before this change the same test code produces the following snapshot:

app cash paparazzi plugin test_ComposeA11yTest_verify_hidden_ComposeView_content_is_not_in_legend