forked from eatvio/eatvio_app
fix: test fixed
This commit is contained in:
@@ -221,7 +221,10 @@ void main() {
|
||||
await tester.pump();
|
||||
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();
|
||||
|
||||
verify(blogPostCubit.toggleLike()).called(1);
|
||||
|
||||
Reference in New Issue
Block a user