paparazzi
paparazzi copied to clipboard
Snapshot without a device frame
Perhaps something like this:
paparazzi.snapshot(avatar, "avatar", deviceFrame = DeviceFrame.NONE)
+1
@jrodbx Is this a duplicate of https://github.com/cashapp/paparazzi/issues/313? Do the fixes solve all the problems in https://github.com/cashapp/paparazzi/issues/313?
I don't think so, a lot of the image on #313 is empty and wasting disk space. I think this issue is related to getting a snapshot image without the device buttons, etc. For example, only for a composable which is a button:
If I am wrong I would create another ticket for that as snapshot testing of components doesn't need the whole screen.
Isn't testing a widget (View
with specific w/h) the same as testing a composable Button
? It doesn't need device frame NOR status bar AND it doesn't need the whole screen (canvas).