File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,11 @@ import 'package:flutter_test/flutter_test.dart';
1111import 'package:disaster_management/main.dart' ;
1212
1313void main () {
14- testWidgets ('Counter increments smoke test' , (WidgetTester tester) async {
14+ testWidgets ('App smoke test' , (WidgetTester tester) async {
1515 // Build our app and trigger a frame.
1616 await tester.pumpWidget (const MyApp ());
1717
18- // Verify that our counter starts at 0.
19- expect (find.text ('0' ), findsOneWidget);
20- expect (find.text ('1' ), findsNothing);
21-
22- // Tap the '+' icon and trigger a frame.
23- await tester.tap (find.byIcon (Icons .add));
24- await tester.pump ();
25-
26- // Verify that our counter has incremented.
27- expect (find.text ('0' ), findsNothing);
28- expect (find.text ('1' ), findsOneWidget);
18+ // Verify that the app builds without errors
19+ expect (find.byType (MaterialApp ), findsOneWidget);
2920 });
3021}
You can’t perform that action at this time.
0 commit comments