fix: tests fixed

This commit is contained in:
misha
2026-11-17 14:32:35 +03:00
parent 8f0ec6d2a3
commit b6ad316db1
2 changed files with 4 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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 {