From d584ceaeb3339c363eb2cead7cd803ca74425e33 Mon Sep 17 00:00:00 2001 From: Hugo Migner Date: Mon, 25 Sep 2023 13:21:43 -0400 Subject: [PATCH] Fix tests real --- test/ui/views/dashboard_view_test.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/ui/views/dashboard_view_test.dart b/test/ui/views/dashboard_view_test.dart index d70cc5308..66af76823 100644 --- a/test/ui/views/dashboard_view_test.dart +++ b/test/ui/views/dashboard_view_test.dart @@ -850,6 +850,9 @@ void main() { }); testWidgets("Schedule card", (WidgetTester tester) async { + RemoteConfigServiceMock.stubGetBroadcastEnabled( + remoteConfigService as RemoteConfigServiceMock, + toReturn: false); tester.binding.window.physicalSizeTestValue = const Size(800, 1410); CourseRepositoryMock.stubCoursesActivities( @@ -862,7 +865,8 @@ void main() { fromCacheOnly: false); dashboard = { - PreferencesFlag.scheduleCard: 0, + PreferencesFlag.broadcastCard: 0, + PreferencesFlag.scheduleCard: 1, }; SettingsManagerMock.stubGetDashboard( @@ -877,10 +881,14 @@ void main() { matchesGoldenFile(goldenFilePath("dashboardView_scheduleCard_1"))); }); testWidgets("progressBar Card", (WidgetTester tester) async { + RemoteConfigServiceMock.stubGetBroadcastEnabled( + remoteConfigService as RemoteConfigServiceMock, + toReturn: false); tester.binding.window.physicalSizeTestValue = const Size(800, 1410); dashboard = { - PreferencesFlag.progressBarCard: 0, + PreferencesFlag.broadcastCard: 0, + PreferencesFlag.progressBarCard: 1, }; SettingsManagerMock.stubGetDashboard(