From 84592db098adaaa451b58532a9831758eaa45159 Mon Sep 17 00:00:00 2001 From: bboysoul Date: Thu, 10 Sep 2026 20:25:35 +0800 Subject: [PATCH] fix: hide past countdown heading --- frontend/src/CountdownPanel.test.ts | 10 ++++++++++ frontend/src/CountdownPanel.vue | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/CountdownPanel.test.ts b/frontend/src/CountdownPanel.test.ts index bce876f..77935d1 100644 --- a/frontend/src/CountdownPanel.test.ts +++ b/frontend/src/CountdownPanel.test.ts @@ -71,6 +71,16 @@ describe('countdown modal accessibility', () => { expect(source).not.toContain("`${formatDate(item.display_date)} · ${item.lunar_text}${suffix}`") }) + it('hides only the past group heading while keeping every group and its rows', () => { + expect(source).toContain("{ key:'recent', title:'最近', items:recent }") + expect(source).toContain("{ key:'later', title:'稍后', items:later }") + expect(source).toContain("{ key:'past', title:'', items:past }") + expect(source).toContain('
{{group.title}}') + expect(source).toContain('
-

{{group.title}}

+

{{group.title}}