import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "tests/e2e", timeout: 30_000, expect: { timeout: 5_000, }, use: { baseURL: "http://127.0.0.1:5173", trace: "retain-on-failure", }, webServer: { command: "npm run dev", url: "http://127.0.0.1:5173", reuseExistingServer: true, timeout: 30_000, }, projects: [ { name: "desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } }, }, { name: "mobile", use: { ...devices["Pixel 7"], viewport: { width: 412, height: 915 } }, }, ], });