From cd1c0334afb7c00a396bf979dfa33eaef17c2613 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Fri, 10 Jul 2026 17:25:57 +0200 Subject: [PATCH] fix: resolve the root playwright config in pnpm test:visual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The visual-regression leg ran 'pnpm exec playwright test' from the storybook package cwd, where the root playwright.config.ts is never picked up — playwright fell back to a configless run with no chromium project and an undefined baseURL for the story-index fetch. Pass the root config explicitly. Verified via 'playwright test --list' from apps/storybook: the [chromium] project and the visual spec resolve. (S8) Co-Authored-By: Claude Fable 5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d93dc33..6f34996 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "turbo run test", "test:e2e": "turbo run test:e2e", "test:stories": "turbo run test:stories", - "test:visual": "pnpm --filter @repo/storybook exec concurrently -k -s first -n 'SB,VRT' -c 'magenta,blue' 'pnpm --filter @repo/storybook exec http-server storybook-static --port 6006 --silent' 'pnpm --filter @repo/storybook exec wait-on tcp:6006 && pnpm exec playwright test'", + "test:visual": "pnpm --filter @repo/storybook exec concurrently -k -s first -n 'SB,VRT' -c 'magenta,blue' 'pnpm --filter @repo/storybook exec http-server storybook-static --port 6006 --silent' 'pnpm --filter @repo/storybook exec wait-on tcp:6006 && pnpm exec playwright test --config ../../playwright.config.ts'", "typecheck": "turbo run typecheck", "conformance": "node scripts/conformance.mjs", "coverage:diff": "node scripts/coverage/diff.mjs",