fix: match Today approved prototype
This commit is contained in:
@@ -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/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user