From 32929c0052cace60ab03403ad610f5bc03bea540 Mon Sep 17 00:00:00 2001 From: Kev Date: Sun, 12 Jul 2026 19:28:17 -0400 Subject: [PATCH] DS4 merge: update QA.20 color lock to the rebuilt STREAKS billboard structure Semantics preserved (step-up amber / step-down green); DS4 moved the coloring into a sev object, so the source-lock regex is updated to match. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/unit/vyndrParityQA.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/vyndrParityQA.test.js b/tests/unit/vyndrParityQA.test.js index 33a85a6..dad1db0 100644 --- a/tests/unit/vyndrParityQA.test.js +++ b/tests/unit/vyndrParityQA.test.js @@ -112,8 +112,12 @@ describe('QA.20 — movement + status color semantics (Phase 2.5 surfaces)', () expect(read('app/ledger/page.tsx')).toContain("textDecoration: 'line-through'"); }); it('lens difficulty: tougher = amber, softer = green — never inverted', () => { + // DS4 rebuilt the STREAKS billboard: difficulty coloring moved into a `sev` + // object, but the semantics are locked here — step-up must be amber, step- + // down must be green, and the two must not be swapped. const panel = read('components/StreaksPanel.tsx'); - expect(panel).toMatch(/step up' \? 'var\(--amber[^']*' : [^:]*step down' \? 'var\(--g-a/); + expect(panel).toMatch(/step up'\s*\?\s*\{ color: 'var\(--amber/); + expect(panel).toMatch(/step down'\s*\?\s*\{ color: 'var\(--g-a/); }); });