fix: align subtask completion control
This commit is contained in:
@@ -610,7 +610,8 @@ describe('task and habit row decoration', () => {
|
||||
const subtaskRow = app.slice(app.indexOf('<div v-for="subtask in selectedTaskSubtasks"'), app.indexOf('</div><span v-if="!selectedTaskSubtasks.length"'))
|
||||
expect(subtaskRow).toContain('class="subtask-detail"')
|
||||
expect(subtaskRow).not.toMatch(/class="subtask-detail"[^>]*@click=/)
|
||||
expect(subtaskRow).toContain('class="check subtask-check"')
|
||||
expect(subtaskRow).toContain('class="task-check subtask-check"')
|
||||
expect(subtaskRow).toContain('<span class="task-check-mark" :class="`p${subtask.priority}`"><Check v-if="subtask.completed" /></span>')
|
||||
expect(subtaskRow).toContain('@click="toggle(subtask)"')
|
||||
expect(css).toContain('.subtask-detail .subtask-check{width:44px;height:44px;flex:0 0 44px;')
|
||||
expect(css).toContain('.task-check{')
|
||||
|
||||
Reference in New Issue
Block a user