Skip to content

Commit

Permalink
use main instead of .Navigation3000__scene as locator
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Dec 21, 2023
1 parent f8c6408 commit 9b52a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function expectStoryToMatchSceneSnapshot(
browser: SupportedBrowserName,
theme: SnapshotTheme
): Promise<void> {
await expectLocatorToMatchStorySnapshot(page.locator('.Navigation3000__scene'), context, browser, theme)
await expectLocatorToMatchStorySnapshot(page.locator('main'), context, browser, theme)
}

async function expectStoryToMatchComponentSnapshot(
Expand Down
2 changes: 1 addition & 1 deletion playwright/pages/storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit 9b52a4b

Please sign in to comment.