Bug fixes and improvements.
+Bug fixes and improvements.
diff --git a/integration_test/1_dashboard.dart b/integration_test/1_dashboard.dart index e369c0ed..5714320c 100644 --- a/integration_test/1_dashboard.dart +++ b/integration_test/1_dashboard.dart @@ -22,9 +22,11 @@ import '../test_data/nutritional_plans.dart'; import '../test_data/profile.dart'; import '../test_data/routines.dart'; -Widget createDashboardScreen({locale = 'en'}) { +Widget createDashboardScreen({String locale = 'en'}) { final mockWorkoutProvider = MockRoutinesProvider(); when(mockWorkoutProvider.items).thenReturn([getTestRoutine(exercises: getScreenshotExercises())]); + when(mockWorkoutProvider.currentRoutine) + .thenReturn(getTestRoutine(exercises: getScreenshotExercises())); when(mockWorkoutProvider.fetchSessionData()).thenAnswer((a) => Future.value([ WorkoutSession( diff --git a/integration_test/3_gym_mode.dart b/integration_test/3_gym_mode.dart index cf504fe1..76431f08 100644 --- a/integration_test/3_gym_mode.dart +++ b/integration_test/3_gym_mode.dart @@ -17,9 +17,12 @@ Widget createGymModeScreen({locale = 'en'}) { final key = GlobalKey