import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests", timeout: 30_000, expect: { timeout: 5_000, }, use: { baseURL: "http://localhost:4321", trace: "retain-on-failure", }, projects: [ { name: "chromium-desktop", use: { browserName: "chromium", viewport: { width: 1440, height: 900 }, }, }, { name: "chromium-mobile", use: { browserName: "chromium", ...devices["Pixel 5"], }, }, ], webServer: { command: "npm run preview", url: "http://localhost:4321", reuseExistingServer: true, }, });