Files
MikrotikManager/playwright.config.ts
T

30 lines
912 B
TypeScript

import { defineConfig } from "@playwright/test"
export default defineConfig({
testDir: "./tests/e2e",
testIgnore: ["**/firewall-context.spec.ts", "**/filters-context.spec.ts", "**/ipsec-context.spec.ts", "**/gre-context.spec.ts", "**/vxlan-context.spec.ts"],
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 45_000,
use: {
baseURL: "http://127.0.0.1:3100",
browserName: "chromium",
channel: "msedge",
viewport: { width: 1440, height: 1000 },
trace: "retain-on-failure",
},
webServer: {
command: "node node_modules/next/dist/bin/next dev --hostname 127.0.0.1 --port 3100",
url: "http://127.0.0.1:3100",
reuseExistingServer: false,
timeout: 120_000,
env: {
NEXT_PUBLIC_BACKEND_URL: "same-origin",
NEXT_PUBLIC_DEFAULT_DATA_SOURCE: "live",
NEXT_PUBLIC_ALLOW_MOCK_DATA: "true",
NEXT_PUBLIC_AUTH_ENABLED: "false",
},
},
})