paparazzi icon indicating copy to clipboard operation
paparazzi copied to clipboard

Snapshot without a device frame

Open swankjesse opened this issue 5 years ago • 1 comments

Perhaps something like this:

    paparazzi.snapshot(avatar, "avatar", deviceFrame = DeviceFrame.NONE)

swankjesse avatar Apr 05 '19 15:04 swankjesse

+1

nikwotton avatar Dec 19 '19 01:12 nikwotton

@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?

TWiStErRob avatar Dec 14 '22 10:12 TWiStErRob

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:

image

If I am wrong I would create another ticket for that as snapshot testing of components doesn't need the whole screen.

JavierSegoviaCordoba avatar Dec 14 '22 10:12 JavierSegoviaCordoba

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).

TWiStErRob avatar Dec 14 '22 10:12 TWiStErRob