diff --git a/playwright.visual.config.ts b/playwright.visual.config.ts index 103bf402..3a5f1981 100644 --- a/playwright.visual.config.ts +++ b/playwright.visual.config.ts @@ -46,6 +46,16 @@ export default defineConfig({ }, }, webServer: { + // The home page and the platform overview print the build and release + // identity. CI sets VITE_BUILD_ID, VITE_COMMIT_SHA and RELEASE_ID for the + // whole workflow, so its build drew other text than the goldens and every + // CI run failed here. The goldens are the template's shape, captured with + // the local identity. + env: { + VITE_BUILD_ID: "local-build", + VITE_COMMIT_SHA: "local", + RELEASE_ID: "local-release", + }, command: "corepack pnpm build && corepack pnpm preview --host 127.0.0.1 --port 4174", url: "http://127.0.0.1:4174",