feat: add nonblocking optional narrative guidance for V14 in QA

This commit is contained in:
2026-11-21 20:35:31 +02:00
parent e239a31a76
commit f5dbd55dfb
22 changed files with 661 additions and 1 deletions
@@ -0,0 +1,43 @@
✔ a saved catalogue choice retains its exact value without exposing an internal identifier (85.501875ms)
✔ warning dismissal is local, never blocks a form, and changed assumptions reveal the warning again (41.842292ms)
✔ annual example renders expected results and source gaps without blocking errors or inferred monthly rows (100.873917ms)
✔ annual example edits survive parent snapshot, draft storage, reload and reopening without changing investor forecast (140.241625ms)
✔ annual example refuses unknown storage versions, extra investor fields and oversized snapshots without overwriting them (89.3535ms)
✔ insufficient funding and growth above 100 percent remain valid, saved assumptions with nonblocking warnings (19.959166ms)
✔ owner annual reference reconciles exact startup, margins, profits, cash and unrounded break-even (2.147208ms)
✔ derived ledger reconciles edited cents and surplus funding without altering annual inputs (0.991625ms)
✔ reference edits update dependent totals and preserve data when an input is invalid (0.691416ms)
✔ warning limits are configurable and equality at the threshold is not a warning (0.14775ms)
✔ V14 optional narratives emit the exact requested guidance once, without altering inputs or existing financial warnings (4.184542ms)
✖ V14 real notice lists missing optional sections once and disappears when completed (126.326167ms)
ℹ tests 12
ℹ suites 0
ℹ pass 11
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1234.396834
✖ failing tests:
test at tests\frontend\optional-plan-texts.test.mjs:43:1
✖ V14 real notice lists missing optional sections once and disappears when completed (126.326167ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
2 !== 1
at TestContext.<anonymous> (file:///C:/laragon/www/portal-investidor-autonomous-qa-20261121/tests/frontend/optional-plan-texts.test.mjs:50:9)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1397:25)
at Test.processPendingSubtests (node:internal/test_runner/test:969:18)
at Test.postRun (node:internal/test_runner/test:1537:19)
at Test.run (node:internal/test_runner/test:1462:12)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 2,
expected: 1,
operator: 'strictEqual',
diff: 'simple'
}