From 3b510608ef4281776fbc06e4589fa86bdec4a904 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 21:29:16 +0800 Subject: [PATCH] test: count the synastry failure title as a report shell (BUG-1897) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8 --- frontend/tests/personal-report-view.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/tests/personal-report-view.test.ts b/frontend/tests/personal-report-view.test.ts index 5989e825c..83759ae5b 100644 --- a/frontend/tests/personal-report-view.test.ts +++ b/frontend/tests/personal-report-view.test.ts @@ -199,7 +199,10 @@ test("the reader renders inside the app shell, in every phase", () => { // 原值:只认 `title="个人报告"` 的两种写法。 // 新值:也认生成中顶栏同一行的 `back=`,以及阅读顶栏带名字的标题表达式。 // 原因:BUG-1665(2026-11-06)生成中页面加返回链接,阅读顶栏标题带名字;外壳数量与阶段数仍须相等。 - const shells = pageSource.match(/|back=)||back=)|/g) ?? []; const phases = pageSource.match(/className="personal-report-(?:state|reader)"/g) ?? []; assert.equal(shells.length, phases.length, "every rendered phase is wrapped exactly once"); assert.ok(phases.length >= 8, `all report phases render, got ${phases.length}`);