// This is a basic Flutter widget test for jjsos_autosos_flutter.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import 'package:autosos_flutter/app.dart';

void main() {
  testWidgets('App boots and shows splash/welcome',
      (WidgetTester tester) async {
    await tester.pumpWidget(
      const ProviderScope(
        child: AutososApp(),
      ),
    );
    // Allow first frame
    await tester.pump(const Duration(milliseconds: 100));
    // No exception means the app rendered
    expect(find.byType(MaterialApp), findsOneWidget);
  });
}
