import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests/e2e", testMatch: ["**/*.e2e.ts"], timeout: 30_000, expect: { timeout: 5_000 }, use: { baseURL: "http://127.0.0.1:4173", trace: "on-first-retry" }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"], launchOptions: { args: ["--enable-webgl", "--use-gl=angle", "--use-angle=swiftshader-webgl"] } } } ], webServer: { command: "npm run dev -- --host 127.0.0.1 --port 4173", url: "http://127.0.0.1:4173", reuseExistingServer: !process.env.CI } });