import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests/browser-capabilities", forbidOnly: true, outputDir: "./artifacts/tests/browser-capabilities/results", reporter: [ ["list"], [ "html", { outputFolder: "./artifacts/tests/browser-capabilities/report", open: "never", }, ], [ "junit", { outputFile: "./artifacts/tests/browser-capabilities/results.xml", }, ], ], use: { baseURL: "http://127.0.0.1:4174", trace: "retain-on-failure", screenshot: "only-on-failure", }, webServer: { command: "corepack pnpm dev --host 127.0.0.1 --port 4174", url: "http://127.0.0.1:4174", reuseExistingServer: false, // Template af312dee. The dev server serves public/config.json, the local // profile, whose BUILD_ID is local-build. CI sets VITE_BUILD_ID for the whole // workflow; built into the dev bundle it makes every page a rolling-release // mismatch that reloads once and then fails closed (CONFIG_BUILD_MISMATCH). env: { VITE_BUILD_ID: "local-build", VITE_COMMIT_SHA: "local" }, }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] }, }, { name: "firefox", use: { ...devices["Desktop Firefox"] }, }, { name: "webkit", use: { ...devices["Desktop Safari"] }, }, ], });