diff --git a/tests/console.spec.ts b/tests/console.spec.ts index 0b75534c4..8f6fd432a 100644 --- a/tests/console.spec.ts +++ b/tests/console.spec.ts @@ -100,6 +100,9 @@ test.describe('console scroll tests', () => { state: 'attached', }); + // Wait for the scroll to complete, since it starts on the next available animation frame + await page.waitForTimeout(500); + // Expect the console to be scrolled to the bottom const scrollPane = await scrollPanelLocator(page); expect( @@ -130,6 +133,9 @@ test.describe('console scroll tests', () => { // Switch back to the console, and expect it to be scrolled to the bottom await panelTabLocator(page, 'Console').click(); + // Wait for the scroll to complete, since it starts on the next available animation frame + await page.waitForTimeout(500); + const scrollPane = await scrollPanelLocator(page); expect( await scrollPane.evaluate(el =>