chore(memory): BLK-014, LRN-132, editor-equine risk, R2 GO
This commit is contained in:
1 parent
f873e06413
commit
f078b1eb96
4 files changed
+21
No files matched your search
@@ -920,3 +920,14 @@ Limit: wording of this client version only.
|
||||
**A11y check**: sr-only text not live = no announce, available to browse only; announce needs live region, avoid duplicating an existing one.
|
||||
**Open instance**: ToolNotes hint above canvas (EditableAnnotations.tsx ~373) cleared on select = remaining shift, needs option (b).
|
||||
**Refs**: SelectionTag.tsx, editor-deselect.spec.ts layout tests, docs/design/README.md deviation 2026-11-12, LRN on layout shift vs hit-test (recompute box per press).
|
||||
|
||||
## LRN-132 — E2E tests and database-wide singleton state (2026-11-12)
|
||||
**Context**: anomaly B (BLK-014, 2cdee42): e2e on shared persistent sandbox asserted an action that needs a database-wide singleton free (one active working copy of historical sheet per database).
|
||||
**Rules**:
|
||||
- Never require a unique/singleton resource to be AVAILABLE in a shared persistent database: state depends on earlier runs and parallel suites.
|
||||
- Need to check the UI of that action → test the REAL component on a harness (e2e:ui, no backend) with the state simulated; import the production component, no fork/mock of its logic; prove it is the real one (e.g. its computed default value).
|
||||
- Server-side (shell) tests assert CONSISTENCY of the state actually present (e.g. button disabled iff reason shown and linked), both branches written, not conditional skips.
|
||||
- Clean up / archive ONLY resources created and identified by the current run (capture ids from successful calls, all calls, before classification); verify ids actually modified (`returning id` = expected set); each cleanup step independent, first error rethrown; skip empty `in ()`.
|
||||
- Avoid concurrent suites mutating the same singleton (set-aside/restore patterns race with readers under fullyParallel and alter pre-existing metadata such as updated_at).
|
||||
- Prove non-interference: per-id snapshot (id, status, archived_at, updated_at) of pre-existing rows before/after; counts alone lie (fixtures add rows).
|
||||
**Refs**: BLK-014, `e2e/ui/working-copy.spec.ts`, `sheets-admin.sandbox.ts` afterAll, `editor-equine.spec.ts` set-aside (open), LRN-076, LRN-082.
|
||||
Reference in new issue
Block a user