Skip to content

Commit

Permalink
Don't stop wait page navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Sep 3, 2024
1 parent 5d774c2 commit a681bff
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/storycrawler/src/browser/stories-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@ 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', {
timeout: 60_000,
waitUntil: 'domcontentloaded',
})
.catch(() => {
this.logger.warn('Timeout to open Storybook preview iframe.');
});
// 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.');
// });
this.page.goto(
this.connection.url + '/iframe.html?selectedKind=story-crawler-kind&selectedStory=story-crawler-story',
);
await this.page.waitForFunction(
() =>
(window as ExposedWindow).__STORYBOOK_CLIENT_API__ ||
Expand Down

0 comments on commit a681bff

Please sign in to comment.