import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./e2e", fullyParallel: false, workers: 1, retries: 0, timeout: 90_000, expect: { timeout: 10_000, }, use: { baseURL: "http://127.0.0.1:4173", trace: "retain-on-failure", screenshot: "only-on-failure", }, webServer: [ { command: "npm --prefix ./server run build && npm --prefix ./server run start", url: "http://127.0.0.1:3001/demo/bootstrap", reuseExistingServer: false, timeout: 120_000, }, { command: "npm --prefix ./client run build && npm --prefix ./client run preview -- --host 127.0.0.1 --port 4173", url: "http://127.0.0.1:4173", reuseExistingServer: false, timeout: 120_000, }, ], projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"], }, }, ], });