From f8cb3b7ae17acd761a73a4c25e16b7e8e5c3ad90 Mon Sep 17 00:00:00 2001 From: VickyStash Date: Tue, 24 Sep 2024 17:39:55 +0200 Subject: [PATCH] Fix test --- tests/ui/PaginationTest.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ui/PaginationTest.tsx b/tests/ui/PaginationTest.tsx index 9d120433daa1..a7ce0632b606 100644 --- a/tests/ui/PaginationTest.tsx +++ b/tests/ui/PaginationTest.tsx @@ -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(); @@ -354,6 +355,7 @@ describe('Pagination', () => { mockGetNewerActions(0); scrollToOffset(500); + await waitForBatchedUpdatesWithAct(); scrollToOffset(0); await waitForBatchedUpdatesWithAct();