From b8deb59beaa0037d54fc721abf0278e430ad07ac Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Fri, 31 May 2024 16:43:02 -0700 Subject: [PATCH] add delay for pagination debounce --- frontend/tests/e2e/search/searchSpecUtil.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/tests/e2e/search/searchSpecUtil.ts b/frontend/tests/e2e/search/searchSpecUtil.ts index f54d32b15..df54d24fb 100644 --- a/frontend/tests/e2e/search/searchSpecUtil.ts +++ b/frontend/tests/e2e/search/searchSpecUtil.ts @@ -146,6 +146,9 @@ export async function clickPaginationPageNumber( `button[data-testid="pagination-page-number"][aria-label="Page ${pageNumber}"]`, ); await paginationButton.first().click(); + + // Delay for pagination debounce + await page.waitForTimeout(400); } export async function clickLastPaginationPage(page: Page) {