Created
December 23, 2023 02:39
-
-
Save rizumita/e67131f53e507f16a1f6667294e12a13 to your computer and use it in GitHub Desktop.
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
testWidget('my test', (tester) async { | |
await tester.pumpWidget(MaterialApp(home: MyWidget())); | |
await tester.tap(find.byKey(const Key('my_widget_key'))); | |
await tester.pumpAndSettle(); | |
expect(find.text('Hello, World!'), findsOneWidget); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment