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]>
This commit is contained in:
committed 2026-09-09 10:13:26 +02:00
1 parent b08a439949
commit d5ec009cb5
44 files changed
+3715 -26

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
import { test, expect } from './base';
import { APP_URL, ID } from '../src/helpers/config';
import { login } from '../src/helpers/auth';
import { AppPage } from '../src/pages/AppPage';
import { ScanPage } from '../src/pages/ScanPage';
/**
* §7 Staff Frontend — CONV-STAFF-UI-001.
*
* After a successful staff login, verify the staff can see and use the
* appropriate application areas and that no major component fails to render.
*/
test('CONV-STAFF-UI-001 staff frontend renders all areas without errors', async ({ page }) => {
const app = new AppPage(page, APP_URL);
const scan = new ScanPage(page);
// Collect console errors + failed requests for the report.
const errors: string[] = [];
page.on('console', (m) => m.type() === 'error' && errors.push(m.text()));
page.on('pageerror', (e) => errors.push(`pageerror: ${e.message}`));
await login(page, APP_URL, ID.staff);
await app.waitForAdmitted();
// Demo Event information + timetable.
await app.gotoTab('agenda');
await expect(app.eventTitle()).toBeVisible();
await expect(page.getByText(/slots/)).toBeVisible();
// Session information (a session detail sheet opens).
await page.getByRole('button', { name: /From Vision to Reality/ }).first().click();
await expect(page.locator('.sheet')).toBeVisible();
await page.getByRole('button', { name: '✕' }).click();
// Scanner + manual code input.
await app.gotoTab('scan');
await expect(page.getByTestId('scanner-manual-code')).toBeVisible();
await expect(page.getByTestId('scanner-manual-go')).toBeVisible();
// Welcome Check-In + Session Check-In functionality (staff mode + toggle + session selector).
await scan.setStaffMode();
await expect(page.getByTestId('welcome-checkin-toggle')).toBeVisible();
await scan.setSessionMode();
await expect(page.getByTestId('session-selector')).toBeVisible();
// Normal Connections functionality.
await app.gotoTab('connections');
await expect(page.getByTestId('connections-tab-mine')).toBeVisible();
// Profile.
await app.gotoTab('profile');
await expect(page.getByTestId('profile-save')).toBeVisible();
// No uncaught errors.
expect(errors, `Uncaught frontend errors: ${errors.join(' | ')}`).toEqual([]);
});