amanpay / web /playwright.config.ts
MHamdan's picture
CI deploy 59e9772
dc47d57 verified
Raw
History Blame Contribute Delete
641 Bytes
import { defineConfig, devices } from '@playwright/test'
// E2E runs against a running AmanPay server (backend serves the React build).
// Default targets the local backend; override with E2E_BASE_URL for staging.
export default defineConfig({
testDir: './e2e',
// The D2 identity E2E has its own backend + config (playwright.d2.config.ts).
testIgnore: /d2-identity\.spec\.ts/,
timeout: 30_000,
fullyParallel: true,
reporter: [['list']],
use: {
baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:8000',
trace: 'retain-on-failure',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
})