Skip to content

Commit 1b2395c

Browse files
authored
Merge pull request #49648 from VickyStash/bugfix/fix-test
[No QA] Fix failing pagination test
2 parents 48e9c17 + f8cb3b7 commit 1b2395c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: tests/ui/PaginationTest.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ describe('Pagination', () => {
339339

340340
// Simulate the maintainVisibleContentPosition scroll adjustment, so it is now possible to scroll down more.
341341
scrollToOffset(500);
342+
await waitForBatchedUpdatesWithAct();
342343
scrollToOffset(0);
343344
await waitForBatchedUpdatesWithAct();
344345

@@ -354,6 +355,7 @@ describe('Pagination', () => {
354355
mockGetNewerActions(0);
355356

356357
scrollToOffset(500);
358+
await waitForBatchedUpdatesWithAct();
357359
scrollToOffset(0);
358360
await waitForBatchedUpdatesWithAct();
359361

0 commit comments

Comments
 (0)