From 9b52a4b07960146db1871a25059ee410b01981b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obermu=CC=88ller?= Date: Thu, 21 Dec 2023 16:02:06 +0100 Subject: [PATCH] use main instead of .Navigation3000__scene as locator --- .storybook/test-runner.ts | 2 +- playwright/pages/storybook.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.storybook/test-runner.ts b/.storybook/test-runner.ts index 2e59ae297d825..1fced816f0559 100644 --- a/.storybook/test-runner.ts +++ b/.storybook/test-runner.ts @@ -167,7 +167,7 @@ async function expectStoryToMatchSceneSnapshot( browser: SupportedBrowserName, theme: SnapshotTheme ): Promise { - await expectLocatorToMatchStorySnapshot(page.locator('.Navigation3000__scene'), context, browser, theme) + await expectLocatorToMatchStorySnapshot(page.locator('main'), context, browser, theme) } async function expectStoryToMatchComponentSnapshot( diff --git a/playwright/pages/storybook.ts b/playwright/pages/storybook.ts index a1d2f38d8ff02..8c48f314d29c6 100644 --- a/playwright/pages/storybook.ts +++ b/playwright/pages/storybook.ts @@ -24,7 +24,7 @@ export class StorybookStoryPage { constructor(page: Page) { this.page = page - this.mainAppContent = page.locator('.Navigation3000__scene') + this.mainAppContent = page.locator('main') this.storyRoot = page.locator('#storybook-root') }