Info Bar Widget Testing #1169
Unanswered
TJMusiitwa
asked this question in
Q&A
Replies: 1 comment
-
|
Hello! We don't have any testing yet, just basic tests. #957 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @bdlukaa
I was wondering if there was any example or implementation that could showcase how to write a widget test that is meant to trigger and display an infobar. This repository also does not have any info bar tests.
I have attempted and thus far all has not worked out well.
The
displayInfoBaris called as a result of either a success or failed API response as such not being triggered manually by tapping on a button.This is what I have thus far
Important
I have to use
runAsyncbecause thedisplayInfoBarmakes use of Future.delayed that causes some issues with pendingTimers.This test with its expectation is meant to pass but fails.
Any thoughts or suggestions?
Beta Was this translation helpful? Give feedback.
All reactions