feat: 更新统计卡片与分组对应关系,优化样式与可访问性
This commit is contained in:
+4
-2
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user