BlueGit

timfa filemanager

Files

filemanager / .github / tests.md

tests.md

tests.md 2.1 KiB Download Raw

Test Index

> Auto-generated by scripts/generate-tests-md.js. Do not edit by hand. > Run node scripts/generate-tests-md.js to regenerate.

---

test/admin.routes.test.js

  • GET /api/admin/users
  • POST /api/admin/users
  • PATCH /api/admin/users/:id
  • DELETE /api/admin/users/:id
  • GET /api/admin/config
  • PUT /api/admin/config
  • POST /api/admin/shutdown
  • normalizes permissions so write implies read on create
  • normalizes permissions so write implies read on update

---

test/auth.routes.test.js

  • GET /api/auth/server-key
  • GET /api/auth/setup-needed
  • POST /api/auth/setup
  • POST /api/auth/login
  • session lifecycle

---

test/config.test.js

  • getEffectivePaths
  • getAllowedRoot

---

test/crypto.test.js

  • hybrid encrypt / decrypt round-trip

---

test/files.routes.test.js

  • POST /api/files/move
  • root alias endpoints
  • GET /api/files/roots returns alias label and original name
  • POST /api/files/root-alias stores alias without renaming filesystem path
  • POST /api/files/root-alias rejects non-root paths
  • GET /api/files/thumbnail
  • returns 404 while cached thumbnail is not ready
  • serves cached thumbnail file when available
  • GET /api/files/root-access
  • returns users with R/R+W modes for an exact root path
  • rejects non-exact nested root paths

---

test/thumbnail-cache.test.js

  • thumbnail cache worker
  • creates cached thumbnail with dimensions smaller than 100px
  • removes cached thumbnail when source file is deleted

---

test/page.load.test.js

  • page load smoke test
  • requests / and boots the client without runtime errors
  • keeps sidebar folded on initial mobile boot
  • suppresses default context menu on mobile file long-press
  • in Home, root tiles single-click focus and double-click open
  • root sidebar shows alias and original name, and excludes Move to action
  • base-level root sidebar shows access list with no item selected
  • shows pending icon spinner when image thumbnail cache is not ready
  • admin user modal locks write checkbox while read is unchecked
  • uses direct svg thumbnail when svg file is under 1MB

---

Source
1# Test Index
2
3> Auto-generated by `scripts/generate-tests-md.js`. Do not edit by hand.
4> Run `node scripts/generate-tests-md.js` to regenerate.
5
6---
7
8## `test/admin.routes.test.js`
9- `GET /api/admin/users`
10- `POST /api/admin/users`
11- `PATCH /api/admin/users/:id`
12- `DELETE /api/admin/users/:id`
13- `GET /api/admin/config`
14- `PUT /api/admin/config`
15- `POST /api/admin/shutdown`
16- `normalizes permissions so write implies read on create`
17- `normalizes permissions so write implies read on update`
18
19---
20
21## `test/auth.routes.test.js`
22- `GET /api/auth/server-key`
23- `GET /api/auth/setup-needed`
24- `POST /api/auth/setup`
25- `POST /api/auth/login`
26- `session lifecycle`
27
28---
29
30## `test/config.test.js`
31- `getEffectivePaths`
32- `getAllowedRoot`
33
34---
35
36## `test/crypto.test.js`
37- `hybrid encrypt / decrypt round-trip`
38
39---
40
41## `test/files.routes.test.js`
42- `POST /api/files/move`
43- `root alias endpoints`
44- `GET /api/files/roots returns alias label and original name`
45- `POST /api/files/root-alias stores alias without renaming filesystem path`
46- `POST /api/files/root-alias rejects non-root paths`
47- `GET /api/files/thumbnail`
48- `returns 404 while cached thumbnail is not ready`
49- `serves cached thumbnail file when available`
50- `GET /api/files/root-access`
51- `returns users with R/R+W modes for an exact root path`
52- `rejects non-exact nested root paths`
53
54---
55
56## `test/thumbnail-cache.test.js`
57- `thumbnail cache worker`
58- `creates cached thumbnail with dimensions smaller than 100px`
59- `removes cached thumbnail when source file is deleted`
60
61---
62
63## `test/page.load.test.js`
64- `page load smoke test`
65- `requests / and boots the client without runtime errors`
66- `keeps sidebar folded on initial mobile boot`
67- `suppresses default context menu on mobile file long-press`
68- `in Home, root tiles single-click focus and double-click open`
69- `root sidebar shows alias and original name, and excludes Move to action`
70- `base-level root sidebar shows access list with no item selected`
71- `shows pending icon spinner when image thumbnail cache is not ready`
72- `admin user modal locks write checkbox while read is unchecked`
73- `uses direct svg thumbnail when svg file is under 1MB`
74
75---