feat: add visible task completion controls
ci / docker (push) Successful in 3m26s

This commit is contained in:
2026-09-07 15:42:42 +08:00
parent 76d9c1576f
commit 46b389f3af
3 changed files with 14 additions and 3 deletions
+11
View File
@@ -61,6 +61,17 @@ describe('task and habit row decoration', () => {
expect(mvpPanel).toContain('shouldToggleRowSwipe')
})
it('shows visible completion buttons for tasks and subtasks while keeping swipe shortcuts', () => {
expect(app).not.toContain('class="sr-only" :aria-label="node.task.completed')
expect(app).not.toContain('class="sr-only" :aria-label="subtask.completed')
expect(app).toContain('class="task-check"')
expect(app.match(/class="task-check"/g)?.length).toBe(2)
expect(app).toContain('class="task-check-mark"')
expect(css).toContain('.task-check{')
expect(css).toContain('.task-check-mark{')
expect(css).toContain('.task-check:focus-visible{')
})
it('does not draw a left border on task or habit rows', () => {
expect(css).toContain('.task-row{border-left:0;')
expect(css).toContain('.habit-row{border-left:0;')