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.
This commit is contained in:
Lago committed 2026-09-09 10:13:26 +02:00
1 parent e4c8815e52
commit 692df23149
44 files changed
+3715 -26

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
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'] },
},
],
});