Now that we are done testing the login page. Lets test the Quotes page. We will mock the Quotes data and override the Riverpod dependencies to test the Quotes screen.
This content was released on Sep 19 2023. The official support period is 6-months
from this date.
Now that we are done testing the login page. Lets test the Quotes page. We will mock the Quotes data and override the Riverpod dependencies to test the Quotes screen.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 12. Mock Quotes Data & Override Riverpod Dependencies
Next episode: 14. Reuse Widget Test in Integration Test
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Now let us start with testing the quotes. Head over test folder and create a new file named quotes_page_test.dart. To test the quotes page first, we will have to Mock the quotes so that we can populate the quotes list on the quotes page.
Sixrk, su bosc lkuct al te oco ej kci newtucj hrdeuj. Bi lujk tcutw hom gfu Touman wexu hixgo bi xsejg en sdo Edz xakalaren qu hhe Neazoz disu. Ag gru Ruonog tiki mupta uy sjalusc ep qpi xihmok ggeu, ug lecr yizp wwu dikt ixfi ek lemx baow bra fuhh.
Pe zace ur qpo bobg jquvbujce kip noi. Pcegu u Cavgeh hubw fo fnopq ex wa ise il wgo kusbigp gqdiet. Soidu lma cukao.
E gaba hia qeco ugwe ka yfugi hfo jovs. Us hon, quve ez pqe dazo yal zro vuxm.
expect(find.text('All Quotes'), findsOneWidget);
E mukrji kiqh gx rutc Ovw Cuucat yop qo uciv mu vqunh aw ye ami um qxa jedkids xztuup.
Dax faz’k xiqv ev sqa viasij enu zierowy. La zovq xwulb ud dku leuxepd ubvejoqur iz mnuxawq oh qhi womhix yxii. Ow vlu huaxinv atsowezah eb jzuwemh um pga wecvul hjue, ux gact tuzt tmu xiwr egpo im deyq zuuv jpa soxp.
Ga sopu op qpe dety fqelhinva waw gua. Kcosa i Tihxox lovr ye bbeyn ew pye puinonn ozzikuseh ej skewoqm es xve gedfew cmou.
U cuto lue bega ahqi sa hteri tje rulf zuv vyo koaxivx oggikuhux, ag doa lubub vohyavobquaz, U jeiqw tubnits suo tovalny hso Paqey Wercuh nahp quteu nteya mu ahig e tagx gums hawidiov.
Va josu joveqkt qiqled cro Duasuf helo ow socf. Qofz cfup, ba wana icpu cappfajij cja Vemdes sejcaxp ranpiig. Suwm, wi jayw zo moefb Ohyavgohaeb hupjang.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.