ghostguild-org/playwright.config.js
Jennie Robinson Faber c40f2c7c63 fix: accessibility improvements and test infrastructure hardening
Add aria-labels to form controls (selects, checkboxes, switches), set
html lang attribute and page title, fix color contrast for --candle-dim
and --text-faint tokens, underline inline links, remove opacity hack.
Harden dev login endpoints with atomic findOneAndUpdate and tokenVersion
in JWT. Update Playwright timeouts and E2E test helpers.
2026-04-05 21:59:02 +01:00

33 lines
764 B
JavaScript

import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './e2e',
outputDir: 'e2e/test-results',
snapshotDir: 'e2e/__screenshots__',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
timeout: 60000,
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
navigationTimeout: 45000,
},
projects: [
{
name: 'chromium',
use: { browserName: 'chromium' },
},
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
env: {
NUXT_PUBLIC_COMING_SOON: 'false',
NODE_ENV: 'development',
},
},
})