From bf500be6f5e79cb965f681c24d56f37a276d9534 Mon Sep 17 00:00:00 2001 From: Byron Wall Date: Sat, 21 Nov 2026 23:08:58 -0500 Subject: [PATCH] fix(site): build before Playwright starts the preview server The site tests failed on a clean checkout because `vite preview` needs `site/dist`. Playwright's web server now runs `pnpm build` first. Co-Authored-By: Claude Opus 5.5 --- site/playwright.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/playwright.config.ts b/site/playwright.config.ts index 933a8336..f468c83b 100644 --- a/site/playwright.config.ts +++ b/site/playwright.config.ts @@ -12,7 +12,9 @@ export default defineConfig({ }, projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 1000 } } }], webServer: { - command: "pnpm preview --port 18588 --strictPort", + // Build first so a clean checkout can run the tests. + command: "pnpm build && pnpm preview --port 18588 --strictPort", + timeout: 180_000, url: "http://127.0.0.1:18588/srcly/", reuseExistingServer: !process.env.CI, },