This commit is contained in:
@@ -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;')
|
||||
|
||||
Reference in New Issue
Block a user