Files
romm/backend
Georges-Antoine Assi b037276bfc Add Playwright e2e cover for permission gating
The #3954 fix is about what a read-only user can SEE, which the Vitest
specs can't reach: visibility depends on grants the backend resolves and
`useCan` projects. These drive a real instance instead.

  frontend/e2e/rom-actions.spec.ts        ⋯ menu items + divider collapse
  frontend/e2e/profile-role.spec.ts       no self-editable role control
  frontend/e2e/game-media-files.spec.ts   Media/Files upload + delete

Every spec asserts both sides -- absent for `e2e_viewer`, present for
`e2e_admin` -- so it can't pass against a page that failed to render, and
notices a fix that over-hides. Verified by reverting the fix: 8 of 15 fail,
and the 6 admin-side guards stay green.

`backend/tools/seed_e2e_users.py` seeds the two fixture users idempotently.
Specs live in e2e/ so Vitest's src/** and test/** globs skip them, and
tsconfig now covers them so they're typechecked.

Not wired into CI: that needs a backend, a database and a library fixture
in the runner.
2026-07-26 09:07:14 -04:00
..
2026-06-21 17:42:25 -04:00
2026-07-01 08:58:00 -04:00
2024-02-10 12:43:39 -05:00
2025-07-05 19:17:40 -04:00
2026-07-23 15:32:32 +09:00
2026-05-17 17:39:47 -04:00
2026-07-18 18:17:45 -04:00
2026-05-22 22:35:30 -04:00