Files
jobtrackingapp/job-tracker-ui/playwright.config.ts
T
cesnimda ce76046a29 feat: complete release readiness work
- consolidate API ownership and remove dead vendor code

- add Stripe billing, learning paths, and public CV hardening

- add migration, recovery, security, audit, and browser gates
2026-07-31 16:54:16 +02:00

49 lines
1.6 KiB
TypeScript

import { defineConfig, devices, chromium } from "@playwright/test";
import os from "node:os";
import path from "node:path";
const apiUrl = "http://localhost:5302";
const appUrl = "http://localhost:3300";
const dataRoot = path.join(os.tmpdir(), `jobtracker-e2e-${process.pid}-${Date.now().toString(36)}`);
export default defineConfig({
testDir: "./e2e",
fullyParallel: false,
workers: 1,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "github" : "list",
use: {
baseURL: appUrl,
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: [
{
command: "dotnet run --no-build --configuration Release --project ../JobTrackerApi/JobTrackerApi.csproj --urls http://localhost:5302",
url: `${apiUrl}/health`,
timeout: 120_000,
reuseExistingServer: false,
env: {
ASPNETCORE_ENVIRONMENT: "Development",
Auth__Require: "true",
Auth__JwtKey: "e2e-only-key-at-least-thirty-two-characters-long",
Auth__AdminEmail: "e2e@example.test",
Auth__AdminPassword: "E2ePassword123!",
Auth__AllowRegistration: "false",
Cors__Origins__0: appUrl,
Data__Root: dataRoot,
HttpsRedirection__Enabled: "false",
CV_PDF_BROWSER_PATH: chromium.executablePath(),
},
},
{
command: "npm run dev -- --hostname localhost --port 3300",
url: appUrl,
timeout: 120_000,
reuseExistingServer: false,
env: { NEXT_PUBLIC_API_BASE_URL: `${apiUrl}/api` },
},
],
});