import { defineConfig } from "@playwright/test"; // Dedicated E2E config for the Coding Training flow. Runs against a local // production server on port 3101 and uses the pre-installed Chromium. export default defineConfig({ testDir: "./e2e", testMatch: "coding.spec.ts", timeout: 60_000, expect: { timeout: 10_000 }, fullyParallel: false, workers: 1, use: { baseURL: "http://localhost:3101", headless: true, screenshot: "only-on-failure", launchOptions: { executablePath: "/opt/pw-browsers/chromium-1194/chrome-linux/chrome", }, }, webServer: { command: "npm run start -- -p 3101", url: "http://localhost:3101", reuseExistingServer: true, timeout: 60_000, }, });