Files
query-tools/playwright.config.ts
T
2026-09-01 14:10:51 +02:00

19 lines
585 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/browser",
workers: 1,
timeout: 120000,
expect: { timeout: 10000 },
use: { baseURL: "http://127.0.0.1:4220", trace: "retain-on-failure" },
webServer: {
command: "npm run build && node scripts/serve-test.mjs",
url: "http://127.0.0.1:4220",
reuseExistingServer: !process.env.CI,
timeout: 180000,
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "firefox", use: { ...devices["Desktop Firefox"] } },
],
});