Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Sep 24, 2024
1 parent 063cf69 commit f8cb3b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/PaginationTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ describe('Pagination', () => {

// Simulate the maintainVisibleContentPosition scroll adjustment, so it is now possible to scroll down more.
scrollToOffset(500);
await waitForBatchedUpdatesWithAct();
scrollToOffset(0);
await waitForBatchedUpdatesWithAct();

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

scrollToOffset(500);
await waitForBatchedUpdatesWithAct();
scrollToOffset(0);
await waitForBatchedUpdatesWithAct();

Expand Down

0 comments on commit f8cb3b7

Please sign in to comment.