You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure whether I use Paparazzi wrongly or if there is a way to achieve the desired behavior, but I think that the API should provide a way to take snapshots after all side effects are executed. For example, I have a composable that renders differently when it has focus. In order to set focus programmatically in our screenshot test, we need to use SideEffect like that:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am not sure whether I use
Paparazzi
wrongly or if there is a way to achieve the desired behavior, but I think that the API should provide a way to take snapshots after all side effects are executed. For example, I have a composable that renders differently when it has focus. In order to set focus programmatically in our screenshot test, we need to useSideEffect
like that:If I try to take a screenshot while the composable has focus:
then it seems that the screenshot was taken before the focus was gained (which I think is expected).
Maybe we need something like
IdlingResource
, or something to force all recompositions to happen.Beta Was this translation helpful? Give feedback.
All reactions