Skip to content

Commit

Permalink
ignore navigation timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Sep 3, 2024
1 parent 4443439 commit 5d774c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/storycrawler/src/browser/stories-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ export class StoriesBrowser extends BaseBrowser {
this.logger.debug('Wait for stories definition.');
await this.page.goto(this.connection.url);
let stories: Story[] | null = null;
await this.page.goto(
this.connection.url + '/iframe.html?selectedKind=story-crawler-kind&selectedStory=story-crawler-story',
{
await this.page
.goto(this.connection.url + '/iframe.html?selectedKind=story-crawler-kind&selectedStory=story-crawler-story', {
timeout: 60_000,
waitUntil: 'domcontentloaded',
},
);
})
.catch(() => {
this.logger.warn('Timeout to open Storybook preview iframe.');
});
await this.page.waitForFunction(
() =>
(window as ExposedWindow).__STORYBOOK_CLIENT_API__ ||
Expand Down

0 comments on commit 5d774c2

Please sign in to comment.