Skip to content

Commit

Permalink
Try adding waitFor to stablize
Browse files Browse the repository at this point in the history
  • Loading branch information
indigolain committed Mar 20, 2024
1 parent 2aab9be commit f4424e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/storycrawler/src/browser/stories-browser.ts
Expand Up @@ -80,6 +80,7 @@ export class StoriesBrowser extends BaseBrowser {
timeout: 60_000,
},
);
await this.page.waitForTimeout(1000);
await this.page.evaluate(() => {
const api = (window as ExposedWindow).__STORYBOOK_CLIENT_API__ || (window as ExposedWindow).__STORYBOOK_PREVIEW__;
function isPreviewApi(api: API | PreviewAPI): api is PreviewAPI {
Expand Down

0 comments on commit f4424e4

Please sign in to comment.