fix: move task pagination below list
ci / gitleaks (push) Successful in 36s
ci / docker (push) Successful in 5m10s

This commit is contained in:
2026-09-20 23:18:04 +08:00
parent 5e338fa90f
commit 34691b6fe8
5 changed files with 99 additions and 11 deletions
+8
View File
@@ -81,6 +81,14 @@ describe('approved five-detail polish', () => {
expect(app).toContain("v-if=\"activeView==='tasks' && taskReorderAvailable\"")
expect(app).toContain('<span class="list-section-count">{{ totalTasks }}</span>')
expect(app).toContain("v-if=\"activeView==='tasks' && totalPages > 1\" class=\"list-page-meta\"")
const taskListEnd = app.indexOf('</section>', app.indexOf('class=\"task-list plain-list\"'))
expect(app.indexOf('class=\"list-page-meta\"')).toBeGreaterThan(taskListEnd)
expect(app.indexOf('class=\"pager\"')).toBeGreaterThan(taskListEnd)
expect(app).toContain('ref="taskListElement"')
expect(app).toContain("totalPages > 1 && (activeView!=='today' || !todaySectionCollapse.tasks)")
expect(app).toContain("taskListElement.value?.scrollIntoView({ block: 'start' })")
expect(app).toContain('class="list-page-meta" aria-live="polite"')
expect(app).toContain('<span aria-live="polite">{{page}} / {{totalPages}}</span>')
expect(app).toContain("if (activeView.value === 'upcoming') { openParams.set('due_from', isoAtLocalDayOffset(0)); openParams.set('due_to', isoAtLocalDayOffset(8)) }")
expect(app).toContain("new Date(task.due_at) >= startOfLocalDay(0) && new Date(task.due_at) < startOfLocalDay(8)")
expect(app).not.toContain('class="list-search-clear"')