feat(statistiques): implémentation frontend statistiques de progression (ticket #82)

Lots F1+F2 : écran progression_screen.dart, intégration home/history/navigation, tests associés (193 tests suite complète, 4 échecs préexistants sans rapport confirmés).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-22 08:58:16 +02:00
parent a8baa3169c
commit 3b7d904953
7 changed files with 1745 additions and 1 deletions

View File

@ -9,6 +9,31 @@ import 'package:gametime/domain/domain.dart';
import 'package:gametime/presentation/home_screen.dart';
void main() {
testWidgets('lentrée Progression est présente après Historique', (
tester,
) async {
await tester.pumpWidget(
MaterialApp(
navigatorObservers: [homeRouteObserver],
home: HomeScreen(
bootstrap: _FakeBootstrap(_FakeActiveSessionRepository()),
),
),
);
await tester.pump();
expect(find.text('Historique'), findsOneWidget);
expect(find.text('Progression'), findsOneWidget);
expect(
find.text('Volume, régularité et évolution par exercice'),
findsOneWidget,
);
expect(
tester.getTopLeft(find.text('Progression')).dy,
greaterThan(tester.getTopLeft(find.text('Historique')).dy),
);
});
testWidgets('lentrée Profil est présente sur laccueil', (tester) async {
await tester.pumpWidget(
MaterialApp(