paparazzi
paparazzi copied to clipboard
Text gets cut off when the AccessibilityRenderExtension is used and the font scale is set to 2f
Description I have a snapshot test where I am using the AccessibilityRenderExtension and I have a font scale test parameter to create multiple snapshots with different font sizes. When the font scale is set to 2f and the AccessibilityRenderExtension is used texts on buttons get cut off. However when I do not use the AccessibilityRenderExtension the text on the buttons does not get cut off.
Steps to Reproduce Here is a sample project I created where the issue is reproducible by running the recordPaparazzi task. It contains 2 test classes one with AccessibilityRenderExtension and one without. When you run recordPaparazzi it will generate the snapshots (although the ones I generated are also contained in the zip file if I am correct) and you can see that the snapshots look the same except when the font scale is set to 2f. PaparazziTest.zip
Expected behavior My expectation would be that the generated snapshots are the same with and without the AccessibilityRenderExtension and that the text on the buttons does not get cut off when you use the AccessibilityRenderExtension
Additional information:
- Paparazzi Version: 1.3.4
- OS: Mac OS Sonoma 14.5
- Compile SDK: 34
- Gradle Version: 8.8
- Android Gradle Plugin Version: 8.5.2
Screenshots