Files
doormile_customer_app/test/widget_test.dart
2026-06-23 11:29:07 +05:30

20 lines
585 B
Dart

import 'package:flutter_test/flutter_test.dart';
import 'package:doormile/main.dart';
void main() {
testWidgets('App boots and advances from splash to onboarding',
(WidgetTester tester) async {
await tester.pumpWidget(const DoormileApp());
// Splash shows the brand wordmark.
expect(find.text('Doormile'), findsWidgets);
// Let the splash auto-navigation timer fire, then settle on onboarding.
await tester.pump(const Duration(seconds: 3));
await tester.pumpAndSettle();
expect(find.text('Send a parcel in one touch'), findsOneWidget);
});
}