Created
October 26, 2019 05:53
-
-
Save tianhaoz95/945ada5da2c5eb14e96e4b689c4e7776 to your computer and use it in GitHub Desktop.
Stupid test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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