Hi everyone!
I'm currently integrating Roborazzi in my app to start having a golden for our design system.
I'm facing an issue where I'm not being able to capture a screenshot for the "Pressed" mode. Has anyone done this?
I'll leave more details on the š§µ
Expected image is the first, what I actually get from roborazzi is the second.
João Silva
03/08/2024, 4:28 PM
Is this possible to achieve?
I was hoping to be able to screenshot the pressed state.
We have our custom behaviour, but the example uses the default material components
d
dai
04/07/2024, 8:22 AM
The best way to do this is to use a MutableInteraction source and emit a Press event via a LaunchedEffect on the screenshot test. Roborazzi should wait for idle so this will update before the screenshot is taken