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);
  });
}
