test: follow-ups of the reviews of the gardes-tests-front stack #496

Merged
maximus merged 4 commits from review-followups-gardes-tests-front into main 2026-10-24 18:11:16 +00:00

4 commits

Author SHA1 Message Date
le king fu
8b1f3158ac test(db): watch every channel to the Journal in the connectToProfile block
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m21s
The pin of 5d26fae refused a folder in raw console.error and console.warn
lines only. Three other channels still let one through with every test
green (review 27373 of PR #496): logWarn, whose lines go with a feedback
report, logInfo (both mocked in this file, so they never reached the
console spies), and console.log, which initLogCapture captures at the info
level. The block now also spies on console.log and reads the calls of the
mocked logInfo, logWarn and logError, and refuses a line holding a `/` or a
`\` whatever its channel.

Applied in the follow-up link by Max's decision of 2026-10-24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:46:37 -04:00
le king fu
5d26fae932 test(db): refuse any raw console line that carries a folder in connectToProfile
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m19s
The test of the migration repair line (B1 of PR #491) only watched the
mocked logService: a raw console.error of the same error, added next to the
cleaned line, would put the full path back in the Journal (initLogCapture
captures console.error and console.warn) with every test green (mutation R6
of review 27245). Each test of the connectToProfile block now spies on both
and refuses a line that holds a `/` or a `\`.

Pinned in the follow-up link at Max's request (2026-10-24, preamble of
/pr-brief 491), like R3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:28:39 -04:00
le king fu
b998fd7c14 docs: listener replaced on a new onClose, unlock screen named as the app does
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m28s
Suggestions of the review of PR #493 (comment 27084): the UpsellDialog row of
docs/architecture.md says the Escape listener is also replaced when `onClose`
changes, and points to the focus follow-up (#494); the release check of #451
in STATE.md no longer calls the window « édition requise », a label no screen
shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:09:36 -04:00
le king fu
41f3b15f4d test: pin four cases the reviews of the stack left unpinned
Non-blocking suggestions of the independent reviews of PRs #490 to #493,
applied in a follow-up link above #493 (Max's decision of 2026-10-24):

- locales.keys.test.ts: a variable name that differs by its case only is a
  gap (`{{version}}` against `{{Version}}`, review 27037, H8); the header says
  that `{{- name}}` and `{{name}}` render alike with `escapeValue: false`.
- db.test.ts: a `)` glued to a word ends no path
  (`C:\Users\jean\Projet(2024)final\x.db`, review 27073, R10).
- TemplateActions.delete.test.ts: three templates, the middle one deleted, so
  a handler bound to the first or the last fails (review 27088, R11).
- ProfileSwitcher.wiring.test.ts: a locked profile that has a PIN opens the
  upsell, never the PIN entry; in Base it asks for the PIN (review 27084, R5).
- elementTree.ts: an absence is proved with `find`, never with `holding`
  (review 27088, S2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:09:36 -04:00