fix: align subtask completion control
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 5m4s

This commit is contained in:
2026-09-15 11:20:34 +08:00
parent 0e93b15797
commit c28dff3a5a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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{')