From 92f3196c2e52a4a680e747d2aed12895f956d251 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Fri, 10 Oct 2025 12:55:00 +0200 Subject: [PATCH 1/2] add sad timeout --- e2e/components/IconButton.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/components/IconButton.test.ts b/e2e/components/IconButton.test.ts index 99a4fde5546..3a77884c2f3 100644 --- a/e2e/components/IconButton.test.ts +++ b/e2e/components/IconButton.test.ts @@ -45,9 +45,9 @@ const stories = [ disableAnimations: true, async setup(page: Page) { await page.keyboard.press('Tab') // focus on icon button - await page.getByText('Bold').waitFor({ - state: 'visible', - }) + await page.getByText('Bold').waitFor({state: 'visible'}) + // eslint-disable-next-line playwright/no-wait-for-timeout + await page.waitForTimeout(100) // wait until after "tooltip delay" for a stable screenshot }, }, { From 61165e5318601316b19d198ff53f5a383030409c Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Fri, 10 Oct 2025 13:10:40 +0200 Subject: [PATCH 2/2] wait longer Increased wait time for tooltip delay to ensure stable screenshots. --- e2e/components/IconButton.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/components/IconButton.test.ts b/e2e/components/IconButton.test.ts index 3a77884c2f3..955d22588f4 100644 --- a/e2e/components/IconButton.test.ts +++ b/e2e/components/IconButton.test.ts @@ -47,7 +47,7 @@ const stories = [ await page.keyboard.press('Tab') // focus on icon button await page.getByText('Bold').waitFor({state: 'visible'}) // eslint-disable-next-line playwright/no-wait-for-timeout - await page.waitForTimeout(100) // wait until after "tooltip delay" for a stable screenshot + await page.waitForTimeout(1000) // wait until after "tooltip delay" for a stable screenshot }, }, {