Dismissed modal sheet not reflected in UI image #535
Replies: 2 comments 2 replies
-
Hi @dmeehan1968, I know your post is quiet old but did you solve your problem? Today I tried to implement snapshot tests to prove my navigation logic and after some issues, I figured out how to do it. I used exact same implementation of This is how my test looks like and it works repeatedly as I expect.
It's worth noticing that when I try to use different I hope I helped you. |
Beta Was this translation helpful? Give feedback.
-
Sorry it's been a while. I don't think I found a solution at the time. |
Beta Was this translation helpful? Give feedback.
-
I'm testing initiating a modal sheet and dismissing it. Other state changes in the UI are correctly captured, but for some reason the removal of the sheet doesn't happen. I've tried using the
timeout:
parameter to add some wait time, but think there is something else causing the UI not to update. I have checked that the state is updated correctly.Animations are disabled in the snapshotting strategy. This was largely copied from Episode 86 of swift-composable-architecture, but I had to make a change to how the window was obtained for iOS 15.
Beta Was this translation helpful? Give feedback.
All reactions