From 16da52f590292042717ead6c4f289fc9893c4576 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Sat, 28 Dec 2024 19:04:22 +0300 Subject: [PATCH] Fix golden test --- app/test_goldens/settings/settings_page_test.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/test_goldens/settings/settings_page_test.dart b/app/test_goldens/settings/settings_page_test.dart index 348374336..a36a10855 100644 --- a/app/test_goldens/settings/settings_page_test.dart +++ b/app/test_goldens/settings/settings_page_test.dart @@ -15,7 +15,6 @@ import 'package:provider/provider.dart'; import 'package:sharezone/l10n/feature_flag_l10n.dart'; import 'package:sharezone/main/application_bloc.dart'; import 'package:sharezone/settings/settings_page.dart'; -import 'package:sharezone/util/cache/streaming_key_value_store.dart'; import 'package:sharezone_widgets/sharezone_widgets.dart'; import 'settings_page_test.mocks.dart'; @@ -30,10 +29,9 @@ void main() { await tester.pumpWidgetBuilder( BlocProvider( bloc: MockSharezoneContext(), - child: Provider( - create: (context) => FeatureFlagl10n( - InMemoryStreamingKeyValueStore(), - ), + child: ChangeNotifierProvider( + create: (context) => MockFeatureFlagl10n(), + child: const SettingsPageBody(), ), ), wrapper: materialAppWrapper(theme: theme),