This commit is contained in:
@@ -114,6 +114,12 @@ describe('task and habit row decoration', () => {
|
||||
expect(toggleBlock).not.toContain('await loadHabits()')
|
||||
})
|
||||
|
||||
it('places numeric habit progress at the far right instead of under the title', () => {
|
||||
expect(mvpPanel.match(/<small v-if="habitProgressText\(h\)" class="habit-progress">/g)?.length).toBe(2)
|
||||
expect(mvpPanel).not.toContain('<span><span class="habit-name">{{ h.name }}</span><small')
|
||||
expect(css).toContain('.habit-progress{margin-left:auto;')
|
||||
})
|
||||
|
||||
it('can hide completed habits in both Today and full habit views', () => {
|
||||
expect(mvpPanel).toContain('const hideCompletedHabits = ref(false)')
|
||||
expect(mvpPanel).toContain('const visibleTodayHabits = computed')
|
||||
|
||||
Reference in New Issue
Block a user