Files
Convivo/e2e/playwright.config.ts
d5ec009cb5 Add Playwright E2E suite (46 tests) + app testids + test_cases.md
- e2e/: full Playwright suite covering every spec case (staff auth/UI,
  welcome + session check-in, attendee access/gating, connections,
  profile visibility, speaker material, sponsor, feedback, E2E journeys,
  role security matrix). 46/46 passing.
- apps/convivo: add data-testid attributes (gate, tabs, scanner, toggles)
  to support the E2E suite.
- test_cases.md: spec-case-to-test coverage map (all cases fully covered).
- .gitignore: ignore e2e node_modules/reports/test-results.

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
2026-09-09 10:13:26 +02:00

45 lines
1.2 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test';
/**
* Convivo acceptance test suite.
*
* Runs against the locally-running stack:
* - Convivo app (Vite dev) -> http://localhost:3000
* - Supabase (Kong) -> http://127.0.0.1:54321
* - Postgres container -> supabase_db_Convivo
*
* Start the stack first:
* npm run db:start && npm run app:dev
*
* Tests run serially (workers: 1) because they share the demo database and
* reset state between tests. Each test is self-contained: it resets the
* relevant rows in `beforeEach` so execution order never matters.
*/
export default defineConfig({
testDir: './tests',
timeout: 90_000,
expect: { timeout: 15_000 },
fullyParallel: false,
workers: 1,
retries: 0,
reporter: [
['list'],
['html', { open: 'never', outputFolder: 'reports/html' }],
],
use: {
baseURL: process.env.CONVIVO_BASE_URL || 'http://localhost:3000',
// Capture evidence for every failed test (spec §40).
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
actionTimeout: 15_000,
navigationTimeout: 30_000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});