diff --git a/.storybook/test-runner.ts b/.storybook/test-runner.ts index c31dabc8afe1d5..de6fc52b2584de 100644 --- a/.storybook/test-runner.ts +++ b/.storybook/test-runner.ts @@ -167,7 +167,7 @@ async function expectStoryToMatchSceneSnapshot( theme: SnapshotTheme ): Promise { // Using .or() because in some cases there's no
(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(