Files
CoaxysPanel/playwright.config.ts
T
arsam 3b4add760c Import project configuration: playwright.config.ts
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:08:57 +03:30

26 lines
654 B
TypeScript

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"] } },
],
});