Skip to content

Commit 8a0d2e3

Browse files
committed
test: Use pumpAndSettle to await overscroll animation
1 parent f304ec4 commit 8a0d2e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/widgets/emoji_reaction_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void main() {
613613

614614
// Scroll to the very bottom of the list with a large offset.
615615
await tester.drag(scrollViewFinder, Offset(0, -500));
616-
await tester.pump();
616+
await tester.pumpAndSettle();
617617
// The top edge of the list entries is out of view;
618618
// the bottom is padded by 8px, the minimum padding, from the bottom
619619
// edge of the scroll view.
@@ -637,7 +637,7 @@ void main() {
637637

638638
// Scroll to the very bottom of the list with a large offset.
639639
await tester.drag(scrollViewFinder, Offset(0, -500));
640-
await tester.pump();
640+
await tester.pumpAndSettle();
641641
// The top edge of the list entries is out of view;
642642
// the bottom edge is padded by 10px from the bottom edge of the scroll
643643
// view, because the view bottom padding is larger than the minimum 8px.

0 commit comments

Comments
 (0)