fix: match Today approved prototype
ci / gitleaks (push) Successful in 56s
ci / docker (push) Successful in 7m25s

This commit is contained in:
2026-09-17 20:43:59 +08:00
parent 66589dd458
commit e4e1d96b30
6 changed files with 158 additions and 18 deletions
+3 -3
View File
@@ -34,10 +34,10 @@ describe('Today independent collapsible sections', () => {
expect(app).toContain('<span class="today-section-title">习惯</span>')
expect(app).not.toMatch(/today-section-title"><(?:CalendarDays|ListTodo|Repeat2)\/>/)
expect(app.match(/class="today-section-toggle(?: today-section-anchor)?"/g)).toHaveLength(3)
expect(app).toContain('<span class="today-section-summary">{{totalTasks}}</span>')
expect(app).toContain('<span class="today-section-summary">{{totalTasks}}</span>')
expect(app).not.toContain('<span class="today-section-summary">{{taskTree.length}} 项</span>')
expect(app).toContain('<ChevronRight v-if="todaySectionCollapse.overdue"')
expect(app).toContain('<ChevronDown v-else')
expect(app).toContain("{{ todaySectionCollapse.overdue ? '' : '⌄' }}")
expect(app).not.toContain('<ChevronRight v-if="todaySectionCollapse.overdue"')
expect(css).toMatch(/\.today-section-toggle\{[^}]*min-height:44px/)
})