diff --git a/e2e/test-helpers/storybook.ts b/e2e/test-helpers/storybook.ts index cd07cbb4629..ccb890c8316 100644 --- a/e2e/test-helpers/storybook.ts +++ b/e2e/test-helpers/storybook.ts @@ -54,7 +54,7 @@ export async function visit(page: Page, options: Options) { await page.goto(url.toString()) await page.waitForSelector('body.sb-show-main:not(.sb-show-preparing-story)') - await page.waitForSelector('#storybook-root > *') + await page.waitForSelector('#storybook-root > *', {state: 'attached'}) await waitForImages(page) }