Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created October 26, 2019 05:53
Show Gist options
  • Save tianhaoz95/945ada5da2c5eb14e96e4b689c4e7776 to your computer and use it in GitHub Desktop.
Save tianhaoz95/945ada5da2c5eb14e96e4b689c4e7776 to your computer and use it in GitHub Desktop.
Stupid test
testWidgets('Contrib screen shows up', (WidgetTester tester) async {
await tester.pumpWidget(MyApp());
await tester.tap(find.byKey(Key('contrib_btn')));
await tester.pump();
await tester.pump();
// and many more pump...
await tester.pump();
await tester.pump();
await tester.pump();
expect(find.byKey(Key('contrib_title')), findsOneWidget);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment