feat: support desktop task swipe toggles
ci / docker (push) Successful in 3m26s

This commit is contained in:
2026-09-07 11:17:13 +08:00
parent 810d59b377
commit e1137ca861
2 changed files with 44 additions and 2 deletions
+7
View File
@@ -13,6 +13,13 @@ describe('mobile navigation styles', () => {
})
describe('task and habit row decoration', () => {
it('supports pointer dragging for desktop task and subtask completion', () => {
expect(app.match(/@pointerdown="startTaskPointer/g)?.length).toBe(2)
expect(app.match(/@pointermove="moveTaskPointer/g)?.length).toBe(2)
expect(app.match(/@pointerup="finishTaskPointer/g)?.length).toBe(2)
expect(app.match(/@pointercancel="cancelTaskPointer/g)?.length).toBe(2)
})
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;')