mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
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.
28 lines
636 B
JSON
28 lines
636 B
JSON
{
|
|
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.vue",
|
|
"src/**/*.d.ts",
|
|
"e2e/**/*.ts",
|
|
"playwright.config.ts"
|
|
],
|
|
"exclude": ["node_modules"],
|
|
"types": ["node", "lodash", "js-cookie", "vue-router", "vue"],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"lib": ["dom", "esnext"],
|
|
"noImplicitAny": true,
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@v2/*": ["./src/v2/*"]
|
|
},
|
|
"types": [
|
|
"./src/plugins/pinia.d.ts",
|
|
"./src/types/main.d.ts",
|
|
"vite/client"
|
|
]
|
|
}
|
|
}
|