From dda885189aba269e468ff14ca251bde145d39207 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 02:15:12 +0800 Subject: [PATCH] test: a chapter that could not be read is a listed page state (BUG-2138 step 2) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq --- frontend/tests/results-as-toasts-2056.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/tests/results-as-toasts-2056.test.ts b/frontend/tests/results-as-toasts-2056.test.ts index d077d1bca..fdca3a76e 100644 --- a/frontend/tests/results-as-toasts-2056.test.ts +++ b/frontend/tests/results-as-toasts-2056.test.ts @@ -88,6 +88,10 @@ const ALERT_ALLOWED: Readonly> = // 原值: 1 处,「套餐没读到」的一行 form-error。新值: 仍是 1 处,改为列表读不到时的整块状态(带「再试一次」)。原因: BUG-2059。 "src/components/billing-panel.tsx": { count: 1, why: "a list (ledger, redeemed codes, packs) could not be read: a standing page state with 再试一次" }, "src/components/personal-report/personal-report-center.tsx": { count: 1, why: "the list could not be read: page state" }, + // 原值: personal-report-markdown-view.tsx had no inline alert + // 新值: one alert, the chapter that could not be read (with 重新加载) + // 原因: BUG-2138 step 2 loads chapters on demand; a failed chapter is a persistent page state, not an action result + "src/components/personal-report/personal-report-markdown-view.tsx": { count: 1, why: "a chapter could not be read: page state" }, "src/components/annual/annual-report-page.tsx": { count: 3, why: "not-enough-credits line in the start card, the page load error, the failed run with its restart button",