diff --git a/front/tests/utils/scrollHelper.ts b/front/tests/utils/scrollHelper.ts index 5040ee6195e..69ad5c3667d 100644 --- a/front/tests/utils/scrollHelper.ts +++ b/front/tests/utils/scrollHelper.ts @@ -20,6 +20,7 @@ const scrollContainer = async ( { stepSize = 300, timeout = 20, scrollOffsetThreshold = 200 }: ScrollOptions = {} ): Promise => { // Locate the scrollable container on the page + await page.waitForSelector(containerSelector, { state: 'visible' }); const container = await page.evaluateHandle( (selector: string) => document.querySelector(selector), containerSelector