Files
ThothII/frontend/playwright.visual.config.ts

17 lines
541 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
testMatch: "ui-visual-review.spec.ts",
timeout: 45_000,
workers: 2,
outputDir: "test-results/visual-review",
use: { ...devices["Desktop Chrome"], baseURL: "http://127.0.0.1:5183", trace: "retain-on-failure" },
webServer: {
command: "npm run dev -- --host 127.0.0.1 --port 5183 --strictPort",
url: "http://127.0.0.1:5183",
reuseExistingServer: !process.env.CI,
env: { VITE_BACKEND_URL: "/api" },
},
});