Created
October 24, 2019 04:04
-
-
Save tianhaoz95/1f79e69d6833ccfc91340552f3df2504 to your computer and use it in GitHub Desktop.
Test unknown delay in widget 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('Slow screen content shows up', (WidgetTester tester) async { | |
| await tester.pumpWidget(MyApp()); | |
| await tester.tap(find.byKey(Key('slow_btn'))); | |
| await tester.pumpAndSettle(new Duration(seconds: 5)); | |
| expect(find.byKey(Key('slow_content')), findsOneWidget); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment