Skip to content

Commit

Permalink
Merge pull request #49648 from VickyStash/bugfix/fix-test
Browse files Browse the repository at this point in the history
[No QA] Fix failing pagination test
  • Loading branch information
mountiny authored Sep 25, 2024
2 parents 48e9c17 + f8cb3b7 commit 1b2395c
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 1b2395c

Please sign in to comment.