blackmann / story_view

Story view for apps with stories.
BSD 3-Clause "New" or "Revised" License
402 stars 327 forks source link

I want write test cases for this story view widgets #161

Closed yroza closed 2 months ago

yroza commented 1 year ago

would you please provide the test cases that you used for testing this package widget @blackmann .

I use patrol package for integration testing https://patrol.leancode.co/.

final story = $.tester.widgetList(find.byKey(Key("story0"))); if (story.isNotEmpty) { await $(#story0).scrollTo().tap(); await $(StoryWidget).waitUntilVisible(); expect($(StoryWidget), findsOneWidget); while ($.tester.widgetList(find.byType(StoryWidget)).isNotEmpty) { await $(#nextStory).tap(); } await $(DashboardPage).waitUntilVisible(); expect($(DashboardPage), findsOneWidget); }

when I perform this then it will stuck because the patrol finder can not able to find that widget so would you please help on this .

geekpius commented 2 months ago

Your PR is welcomed