Skip to content

Commit 03f96cb

Browse files
committed
updated actions
1 parent 88d3e5b commit 03f96cb

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/widget_test.dart

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,11 @@ import 'package:flutter_test/flutter_test.dart';
1111
import 'package:disaster_management/main.dart';
1212

1313
void 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
}

0 commit comments

Comments
 (0)