Skip to content

Commit

Permalink
fix: Use proper timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeelaudibert committed Feb 25, 2025
1 parent 12c3a8b commit 209c676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/storybook/.storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async function takeSnapshotWithTheme(page: Page, context: TestContext, browser:
// Wait until we're sure we've finished loading everything
await waitForPageReady(page)
await page.waitForFunction(() => Array.from(document.images).every((i: HTMLImageElement) => !!i.naturalWidth))
await page.waitForTimeout(100)
await page.waitForTimeout(2000)

// Do take the snapshot
await doTakeSnapshotWithTheme(page, context, browser, theme, storyContext)
Expand Down

0 comments on commit 209c676

Please sign in to comment.