Skip to content

Commit

Permalink
Tune locator
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Jan 9, 2024
1 parent c82cacd commit 49690e3
Showing 1 changed file with 1 addition and 1 deletion.
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(
theme: SnapshotTheme
): Promise<void> {
// Using .or() because in some cases there's no <main> (primarily logged-out screens)
await expectLocatorToMatchStorySnapshot(page.locator('main').or(page), context, browser, theme)
await expectLocatorToMatchStorySnapshot(page.locator('main').or(page.locator('body')), context, browser, theme)
}

async function expectStoryToMatchComponentSnapshot(
Expand Down

0 comments on commit 49690e3

Please sign in to comment.