Files
otche-frontend/playwright.config.ts

28 lines
717 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: 0,
reporter: "list",
use: {
baseURL: "http://127.0.0.1:4173",
trace: "retain-on-failure",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: [
{
command: "node e2e/serve-api.mjs",
url: "http://127.0.0.1:4174/health",
reuseExistingServer: false,
},
{
command: "npm run dev -- --port 4173 --strictPort",
url: "http://127.0.0.1:4173",
env: { OTCHE_API_PROXY: "http://127.0.0.1:4174" },
reuseExistingServer: false,
},
],
});