logicsrc/apps/logicsrc-web/playwright.config.ts
Anthony Ettinger c9050bda0e fix(web): keep next dev on port 5174, which Playwright waits on
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:05:26 +00:00

31 lines
655 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
timeout: 30_000,
expect: {
timeout: 5_000
},
fullyParallel: true,
reporter: process.env.CI ? [["github"], ["list"]] : "list",
use: {
baseURL: "http://127.0.0.1:5174",
trace: "on-first-retry"
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] }
},
{
name: "mobile-chrome",
use: { ...devices["Pixel 7"] }
}
],
webServer: {
command: "bun run dev",
url: "http://127.0.0.1:5174",
reuseExistingServer: !process.env.CI,
timeout: 120_000
}
});