Replies: 1 comment
-
You can write the test like this: https://github.com/mono0926/adaptive_dialog/blob/feature/mono/test/example/test/pages/alert_page_test.dart .
I think it's a problem with your code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add widget tests for some of my widgets using the adaptive_dialog package, but I can't seem to succeed in that. If I'm expecting an AlertDialog, I get a timer pending error, which is not on my side, it might not even be on your side either. Is there a way to test the widget?
The error I'm getting:
The following assertion was thrown running a test:
A Timer is still pending even after the widget tree was disposed.
'package:flutter_test/src/binding.dart':
Failed assertion: line 1518 pos 12: '!timersPending'
Beta Was this translation helpful? Give feedback.
All reactions