|
1 | | -// This is a basic Flutter widget test. |
2 | | -// |
3 | | -// To perform an interaction with a widget in your test, use the WidgetTester |
4 | | -// utility in the flutter_test package. For example, you can send tap and scroll |
5 | | -// gestures. You can also use WidgetTester to find child widgets in the widget |
6 | | -// tree, read text, and verify that the values of widget properties are correct. |
| 1 | +// // This is a basic Flutter widget test. |
| 2 | +// // |
| 3 | +// // To perform an interaction with a widget in your test, use the WidgetTester |
| 4 | +// // utility in the flutter_test package. For example, you can send tap and scroll |
| 5 | +// // gestures. You can also use WidgetTester to find child widgets in the widget |
| 6 | +// // tree, read text, and verify that the values of widget properties are correct. |
7 | 7 |
|
8 | | -import 'package:chart_with_background_image/main.dart'; |
9 | | -import 'package:flutter/material.dart'; |
10 | | -import 'package:flutter_test/flutter_test.dart'; |
| 8 | +// import 'package:flutter/material.dart'; |
| 9 | +// import 'package:flutter_test/flutter_test.dart'; |
11 | 10 |
|
12 | | -void main() { |
13 | | - testWidgets('Counter increments smoke test', (WidgetTester tester) async { |
14 | | - // Build our app and trigger a frame. |
15 | | - await tester.pumpWidget(BackgroundImage()); |
16 | 11 |
|
17 | | - // Verify that our counter starts at 0. |
18 | | - expect(find.text('0'), findsOneWidget); |
19 | | - expect(find.text('1'), findsNothing); |
| 12 | +// void main() { |
| 13 | +// testWidgets('Counter increments smoke test', (WidgetTester tester) async { |
| 14 | +// // Build our app and trigger a frame. |
| 15 | +// await tester.pumpWidget(const MyApp()); |
20 | 16 |
|
21 | | - // Tap the '+' icon and trigger a frame. |
22 | | - await tester.tap(find.byIcon(Icons.add)); |
23 | | - await tester.pump(); |
| 17 | +// // Verify that our counter starts at 0. |
| 18 | +// expect(find.text('0'), findsOneWidget); |
| 19 | +// expect(find.text('1'), findsNothing); |
24 | 20 |
|
25 | | - // Verify that our counter has incremented. |
26 | | - expect(find.text('0'), findsNothing); |
27 | | - expect(find.text('1'), findsOneWidget); |
28 | | - }); |
29 | | -} |
| 21 | +// // Tap the '+' icon and trigger a frame. |
| 22 | +// await tester.tap(find.byIcon(Icons.add)); |
| 23 | +// await tester.pump(); |
| 24 | + |
| 25 | +// // Verify that our counter has incremented. |
| 26 | +// expect(find.text('0'), findsNothing); |
| 27 | +// expect(find.text('1'), findsOneWidget); |
| 28 | +// }); |
| 29 | +// } |
0 commit comments