flutter integration test ?
Maybe call showDialog with await keyword
did you work with integration tests ?
i couldn't catch you, can you give me a example
await tester .press(find.text('Done')); await tester.pumpAndSettle(); await Future.delayed(Duration(seconds: 5)); expect(actual, matcher)
It's in private project. I wrote test for time picker. You can find more tests in google or YouTube
If you want to close dialog you should emulate click whatever in screen. If you want to check it in tests, you can try use statefull widget and it's lifecycle, I don't know the right answer
i know how to close dialog but i don't have idea to check, is dialog closed or not.
#help
showDialog returns future, via completed when dialog was closed... U can use it) Set callback
Обсуждают сегодня