Skip to content

Commit

Permalink
fix storybook exceeding timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wojd0 authored and VitoAlbano committed Jul 1, 2024
1 parent 10b6826 commit e9b3671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e-playwright/page-object/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/

export * from './components';
export * from './stories/base.stories';
export * from './stories/base-stories';
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export class BaseStories extends PlaywrightBase {
}

async navigateTo(navigationParameters: NavigationParameters): Promise<void> {
await this.page.goto(`/iframe.html?args=&viewMode=story&id=${this.buildStoryId(navigationParameters)}`, {
waitUntil: 'networkidle',
timeout: timeouts.large
});
await this.page.goto(`/iframe.html?viewMode=story&id=${this.buildStoryId(navigationParameters)}`);
await this.page.waitForSelector('storybook-root', { timeout: timeouts.large });
}
}

0 comments on commit e9b3671

Please sign in to comment.