Info Bar Widget Testing #1169
Unanswered
TJMusiitwa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
displayInfoBar
is 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
runAsync
because thedisplayInfoBar
makes 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