taskmanager/playwright.config.ts

26 lines
676 B
TypeScript

import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: false,
workers: 1,
timeout: 30000,
globalSetup: "./tests/e2e/setup.ts",
use: {
baseURL: "http://localhost:3107",
headless: true,
trace: "retain-on-failure",
},
webServer: {
command: "npm run start -- --port 3107",
url: "http://localhost:3107/login",
reuseExistingServer: false,
timeout: 120000,
env: {
DATABASE_URL: process.env.DATABASE_URL!,
NEXTAUTH_URL: "http://localhost:3107",
NEXTAUTH_SECRET: "test-only-session-secret-7227277227277227",
ALLOW_LOCAL_HTTP: "true",
},
},
});