import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests/e2e", timeout: 30_000, expect: { timeout: 15_000 }, use: { baseURL: "http://127.0.0.1:3107", channel: "chrome", contextOptions: { reducedMotion: "reduce", }, trace: "on-first-retry", }, webServer: { command: "NEXT_DIST_DIR=.next-dev npm run dev -- -p 3107", url: "http://127.0.0.1:3107", reuseExistingServer: !process.env.CI, timeout: 120_000, }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] } }, { name: "mobile", use: { ...devices["Pixel 5"] } }, ], });