The Files tab no longer offers a plain Upload from All files, which has no destination of its own. The admin spec now checks "Upload to folder" there and Upload in a folder subtab, and the read-only spec checks that neither appears once the tab has rendered. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
End-to-end tests (Playwright)
These drive a real running RomM instance, unlike the Vitest specs, which mount components in isolation. They exist to cover behaviour that only shows up in the assembled app. They live in e2e/ rather than src/ or test/ because Vitest's globs (src/**/*.{test,spec}.ts, test/**/*.{test,spec}.ts) would otherwise try to run them in jsdom.
Running tests
-
Have the app up and reachable (default
http://localhost:3000, override withE2E_BASE_URL), with a populated library — the specs pick the first ROM they find. -
Seed the two fixture users, from the repo root:
uv run python .github/scripts/seed_e2e_users.py # --remove to clean up afterwards -
Run, from
frontend/:npm run test:e2e # headless npm run test:e2e:ui # interactive, for debugging a failure
Authentication
auth.setup.ts runs first as its own project, logs each fixture user in once and saves the session to playwright/.auth/ (gitignored). Specs pick an identity with test.use({ storageState: STORAGE_STATE.viewer }) and start signed in, so the form is driven twice per run rather than once per test.
login.spec.ts is the only spec that drives the form, using the default unauthenticated page. If auth breaks, diagnose there.