-
Notifications
You must be signed in to change notification settings - Fork 89
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 testing for Flushbar with duration #40
Comments
Depends on your implementation, is there only Flushbar with duration 2 sec ? or you have some Timer(...); in my case i added difference -1 second and add pump again after expect , and finally works Example : // My Snackbar
// Widget Test
gap 1 seconds means to execute matcher before flush bar is gone |
@stevanusw28 Did you later find a way to test the Flushbar? |
This solution at least not working for me. In my implementation, the flushbar is wrapped by |
Hello, I try to create the widget test for the flushbar component (with duration). However, is seems there is timer that block the process like this:
Because of this, I can only expect the flushbar value just after the timer process done like this:
However, this will give the test result is failed because the
flushbarSuccess
already dismissed after 2 second. Is there any way to test the Flushbar?The text was updated successfully, but these errors were encountered: