From b6ad316db15d0946b142bc3364f384569197b00a Mon Sep 17 00:00:00 2001 From: misha Date: Tue, 17 Nov 2026 14:32:35 +0300 Subject: [PATCH] fix: tests fixed --- .../plans/presentation/pages/about_plan_screen_smoke_test.dart | 3 ++- .../presentation/pages/about_recipe_screen_smoke_test.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/features/plans/presentation/pages/about_plan_screen_smoke_test.dart b/test/features/plans/presentation/pages/about_plan_screen_smoke_test.dart index f39ed773..2dad6dbe 100644 --- a/test/features/plans/presentation/pages/about_plan_screen_smoke_test.dart +++ b/test/features/plans/presentation/pages/about_plan_screen_smoke_test.dart @@ -234,7 +234,8 @@ void main() { await tester.tap(find.byType(BackButton)); await tester.pump(); - expect(find.byType(AboutPlanScreen), findsOneWidget); + expect(tester.takeException(), isNull); + expect(find.byType(AboutPlanScreen), findsNothing); }); testWidgets('loaded state bookmark tap calls addToFavorite when not favorite', (tester) async { diff --git a/test/features/recipe/presentation/pages/about_recipe_screen_smoke_test.dart b/test/features/recipe/presentation/pages/about_recipe_screen_smoke_test.dart index b9426289..5a939542 100644 --- a/test/features/recipe/presentation/pages/about_recipe_screen_smoke_test.dart +++ b/test/features/recipe/presentation/pages/about_recipe_screen_smoke_test.dart @@ -242,7 +242,8 @@ void main() { await tester.tap(find.byType(BackButton)); await tester.pump(); - expect(find.byType(AboutRecipeScreen), findsOneWidget); + expect(tester.takeException(), isNull); + expect(find.byType(AboutRecipeScreen), findsNothing); }); testWidgets('renders with navigateToComments true', (tester) async {