From e9b3671e50646b9841c732e7dcc17fc7e3158498 Mon Sep 17 00:00:00 2001 From: Wojciech Duda <69160975+wojd0@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:48:59 +0200 Subject: [PATCH] fix storybook exceeding timeout --- e2e-playwright/page-object/index.ts | 2 +- .../stories/{base.stories.ts => base-stories.ts} | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) rename e2e-playwright/page-object/stories/{base.stories.ts => base-stories.ts} (88%) diff --git a/e2e-playwright/page-object/index.ts b/e2e-playwright/page-object/index.ts index 2e1d1fa8ce2..05c76406000 100644 --- a/e2e-playwright/page-object/index.ts +++ b/e2e-playwright/page-object/index.ts @@ -16,4 +16,4 @@ */ export * from './components'; -export * from './stories/base.stories'; +export * from './stories/base-stories'; diff --git a/e2e-playwright/page-object/stories/base.stories.ts b/e2e-playwright/page-object/stories/base-stories.ts similarity index 88% rename from e2e-playwright/page-object/stories/base.stories.ts rename to e2e-playwright/page-object/stories/base-stories.ts index 0e0825e2fb4..6cffd21bf3a 100644 --- a/e2e-playwright/page-object/stories/base.stories.ts +++ b/e2e-playwright/page-object/stories/base-stories.ts @@ -40,9 +40,7 @@ export class BaseStories extends PlaywrightBase { } async navigateTo(navigationParameters: NavigationParameters): Promise { - 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 }); } }