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:
#1757
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.Originally posted by @St4B in #500
The text was updated successfully, but these errors were encountered: