Phase 1 du MVP : schéma SQLite porté depuis le prototype web, seed des règles/récompenses, flux d'onboarding en 4 étapes et écran d'accueil minimal. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
712 B
Dart
24 lines
712 B
Dart
import 'package:bonpoint/app.dart';
|
|
import 'package:bonpoint/providers/database_provider.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('Affiche l\'écran de bienvenue au premier lancement',
|
|
(tester) async {
|
|
await tester.pumpWidget(
|
|
ProviderScope(
|
|
overrides: [
|
|
onboardingCompleteProvider.overrideWith((ref) async => false),
|
|
],
|
|
child: const BonpointApp(),
|
|
),
|
|
);
|
|
await tester.pump();
|
|
await tester.pump(const Duration(milliseconds: 100));
|
|
|
|
expect(find.text('Bons Points'), findsWidgets);
|
|
expect(find.text('Commencer'), findsOneWidget);
|
|
});
|
|
}
|