Created
July 19, 2020 14:37
-
-
Save BouweCeunen/6a4cb2bc44d88f542b206a1c4eb63d14 to your computer and use it in GitHub Desktop.
This file contains 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
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:<package>/App.dart'; | |
void main() { | |
testWidgets('Counter increments smoke test', (WidgetTester tester) async { | |
// Build our app and trigger a frame. | |
await tester.pumpWidget(App()); | |
// Verify that our counter starts at 0. | |
expect(find.text('0'), findsOneWidget); | |
expect(find.text('1'), findsNothing); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment