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 had a scenario where pressing a button triggers a loading state which replaces the page, because the button was no longer in the widget tree, the test was getting stuck even though it pressed successfully.
I was able to fix this by duplicating the pressOn action in a new action, and doing the following:
Wrap the final pumpAndSettle with a try catch
Add a one second timeout to the pumpAndSettle
I'm sure this could be cleaner in the actual fix but here is my adjusted code:
I had a scenario where pressing a button triggers a loading state which replaces the page, because the button was no longer in the widget tree, the test was getting stuck even though it pressed successfully.
I was able to fix this by duplicating the pressOn action in a new action, and doing the following:
I'm sure this could be cleaner in the actual fix but here is my adjusted code:
The text was updated successfully, but these errors were encountered: