fix: test fixed

This commit is contained in:
misha
2026-08-03 15:30:54 +03:00
parent 2d6b042d45
commit 9de0efa28e

View File

@@ -221,7 +221,10 @@ void main() {
await tester.pump(); await tester.pump();
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await tester.tap(find.byIcon(Icons.favorite_border_rounded)); final likeIcon = find.byIcon(Icons.favorite_border_rounded);
await tester.ensureVisible(likeIcon);
await tester.pumpAndSettle();
await tester.tap(likeIcon);
await tester.pump(); await tester.pump();
verify(blogPostCubit.toggleLike()).called(1); verify(blogPostCubit.toggleLike()).called(1);