feat: 更新统计卡片与分组对应关系,优化样式与可访问性
CI / verify (push) Successful in 1m41s
CI / 部署到服务器 (push) Successful in 26s

This commit is contained in:
chenshoulin
2026-10-24 18:31:45 +08:00
parent 81ef0cc43f
commit 300b2de37e
7 changed files with 158 additions and 98 deletions
+4 -2
View File
@@ -159,8 +159,10 @@ describe('App 路由', () => {
await nextTick()
const values = wrapper.findAll('dd').map((node) => node.text())
// [今日待办, 逾期, 今天到期, 本周完成]
expect(values[3]).toBe('1')
// 统计带 = [逾期, 今天到期, 进行中, 待办]:刚完成的任务不进任何分组,四格都应是 0
expect(values).toEqual(['0', '0', '0', '0'])
// 「本周完成」已移到页头副标题,不再占统计格
expect(wrapper.find('[data-role="completed-this-week"]').text()).toBe('1')
wrapper.unmount()
})
})