-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
widget tests failing after updating to 5.9.0 #515
Comments
What kind of errors? |
Finder does not find anything on the first pump (zero widgets found). After adding pumpAndsSettle after the initial pump fixes the errors. |
Put here a minimal code to reproduce the error. |
Passes with 5.8.4, fails with 5.9.0:
|
Well, that's unexpected. We're using Future in last version for the new change: ensureScreenSize as parameter. Thanks for reporting. |
Is there any update on this? @Mounir-Bouaiche @techouse @lizhuoyuan @naivetoby |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Hello everyone, how did this work out in the end? I also encountered the same problem. |
The same issue:
With the test:
The test passes when SignPortraitScreen() does not use any screen utilities, with a value like Error:
Always fails with:
Then:
Works fine with
|
@Mounir-Bouaiche Is it possible to make a release or is this package now unmaintained? |
Widget tests that contain
ScreenUtilInit
fail when using5.9.0
. Downgrading to5.8.4
fixes the issue. Putting atester.pumpAndSettle()
after everytester.pumpWidget
also solves the problem.The text was updated successfully, but these errors were encountered: