Files
romm/.gitignore
Georges-Antoine Assi 9e5582230d Sign in once per role instead of per test
Every spec drove the login form, which is 15 UI logins to test something
login.spec.ts can cover on its own.

auth.setup.ts now runs first as its own project, logs each fixture user in
once and saves the session (cookies plus localStorage) to playwright/.auth/.
Specs pick an identity with `test.use({ storageState })` and start signed in.
That is preferred over building a context by hand, which would silently drop
the project's options -- baseURL, the blocked service worker, viewport.

login.spec.ts is the one place the form is exercised, on a deliberately
unauthenticated page, and it gained cover the suite never had: a rejected
password and the redirect for an anonymous visitor.

Suite: 33s -> ~19s, with 18 tests instead of 15. Verified three times against
the build and once against the dev server.
2026-07-26 14:08:37 -04:00

89 lines
1.2 KiB
Plaintext

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
!.vscode/tasks.json
.zed/*
!.zed/settings.json
pyrightconfig.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# pycache
__pycache__
# secrets
.env
# database
mariadb
*.sqlite
# used to mock the library/config/mounts/etc while testing
frontend/assets/romm
frontend/assets/emulatorjs/cores
romm_mock
# virtualenv
.venv
# testing
backend/romm_test/resources
backend/romm_test/logs
.pytest_cache
.hypothesis
/romm_test
.coverage
pytest-report.xml
coverage.xml
# service worker
frontend/dev-dist
# storybook
frontend/storybook-static
# outside data
switch_titledb.json
switch_product_ids.json
# AI tools
# Keep shared agent skills tracked; ignore personal/local Claude config.
.claude/*
!.claude/skills/
!.claude/hooks/
!.claude/settings.json
# Local dev scripts
/dev.sh
# Playwright (e2e) artifacts
frontend/playwright/.auth/
frontend/test-results/
frontend/playwright-report/
frontend/blob-report/
frontend/.last-run.json