Frontend app for Visual Regression Tracker
- clone repo
npm i- Update
.env npm run start
The .test.tsx files next to the source are Vitest unit and component tests; the .spec.ts files in integration_tests/test are Playwright browser tests.
Project layout, conventions and the definition of done are in AGENTS.md; see also CONTRIBUTING.md.
The UI asks the backend (GET /users/oidc/enabled) whether OIDC is enabled and then replaces the local login form with the SSO login. No UI configuration is needed for that.
REACT_APP_OIDC_AUTO_REDIRECT=trueredirects straight to the identity provider instead of showing the "Login with SSO" button. The overlay enables it:
docker compose -f docker-compose.yml -f docker-compose.oidc.yml upSee the backend README for the local mock identity provider.
Run them once, or in watch mode with npm run test:watch:
npm run testRun Playwright tests locally (builds the app and serves it with vite preview on port 4173):
npm run test:pw:local- Generate keys here
- place in folder
/secretsnamedssl.certandssl.key