@@ -96,6 +96,20 @@ describe('task and habit row decoration', () => {
|
||||
expect(css).toContain('.habit-toolbar{')
|
||||
})
|
||||
|
||||
it('keeps Today as a low-noise dashboard with direct empty-state actions', () => {
|
||||
expect(app).toContain('class="today-board"')
|
||||
expect(app).toContain('todayOpenTasks')
|
||||
expect(app).toContain('todayCompletedTasks')
|
||||
expect(app).toContain('taskComposeTitle')
|
||||
expect(app).toContain('添加今天任务')
|
||||
expect(app).toContain('v-if="activeView===\'trash\' || totalPages > 1 || totalTasks > 0"')
|
||||
expect(mvpPanel).toContain('class="empty-panel today-empty-panel"')
|
||||
expect(mvpPanel).toContain('添加习惯')
|
||||
expect(css).toContain('.today-board{')
|
||||
expect(css).toContain('.today-summary-grid{')
|
||||
expect(css).toContain('.empty-action{')
|
||||
})
|
||||
|
||||
it('keeps habit cards borderless so the rounded left edge has no visual gap', () => {
|
||||
expect(css).toMatch(/\.habit-row\{border:0;/)
|
||||
expect(css).not.toMatch(/\.habit-row\{[^}]*border-top:/)
|
||||
|
||||
Reference in New Issue
Block a user