This reverts commit 081cddaf54.
This commit is contained in:
@@ -91,7 +91,7 @@ describe('unified floating add interaction', () => {
|
||||
expect(floatingAdd).toContain('@pointermove="moveDrag"')
|
||||
expect(floatingAdd).toContain("emit('activate',")
|
||||
expect(css).toContain('.unified-fab.dragging')
|
||||
expect(countdownPanel).toMatch(/<Transition[^>]*name="countdown-compose"/)
|
||||
expect(countdownPanel).toContain('<Transition name="countdown-compose">')
|
||||
expect(css).toContain('.countdown-compose-enter-active')
|
||||
expect(css).toContain('@media(max-width:930px){.unified-fab{bottom:calc(82px + env(safe-area-inset-bottom))}')
|
||||
})
|
||||
@@ -124,48 +124,6 @@ describe('unified floating add interaction', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('first-pass information hierarchy cleanup', () => {
|
||||
it('removes repeated page titles while keeping lightweight subtitles', () => {
|
||||
expect(mvpPanel).not.toContain('<h2>习惯</h2>')
|
||||
expect(mvpPanel).not.toContain('<h2>设置与数据</h2>')
|
||||
expect(countdownPanel).not.toContain('<h2>倒数日</h2>')
|
||||
expect(mvpPanel).toContain('把想坚持的事,变成每天的日常')
|
||||
expect(countdownPanel).toContain('记住值得期待与纪念的日子')
|
||||
})
|
||||
|
||||
it('keeps single-page task counts without showing 1 / 1 pagination noise', () => {
|
||||
expect(app).toContain("totalPages > 1 ? `第 ${page} / ${totalPages} 页 · 共 ${totalTasks} 项` : `共 ${totalTasks} 项`")
|
||||
})
|
||||
|
||||
it('groups Today into task, habit, and countdown reminder blocks', () => {
|
||||
expect(app).toContain("<section :class=\"{ 'today-block': activeView==='today' }\">")
|
||||
expect(app.match(/class=\"today-block\"/g)?.length).toBe(2)
|
||||
expect(app).toContain('今日任务')
|
||||
expect(app).toContain('今日习惯')
|
||||
expect(app).toContain('倒数日提醒')
|
||||
expect(countdownPanel).toContain("const props = defineProps<{ view?: 'full' | 'today' }>()")
|
||||
expect(css).toContain('.today-block{')
|
||||
})
|
||||
|
||||
it('reduces task row noise to a priority dot and desktop-only delete action', () => {
|
||||
expect(app).toContain('class="priority-dot"')
|
||||
expect(app).not.toContain("{{['','低','中','高'][node.task.priority]}}")
|
||||
expect(app).toContain('class="icon ghost task-delete"')
|
||||
expect(css).toContain('.priority-dot')
|
||||
expect(css).toMatch(/\.task-delete\{display:none/)
|
||||
})
|
||||
|
||||
it('uses one mobile overflow trigger for sidebar row actions and folds archived lists by default', () => {
|
||||
expect(app).toContain("const sidebarActionMenu = ref('')")
|
||||
expect(app).toContain('class="mini-icon sidebar-more mobile-only"')
|
||||
expect(app).toContain('class="sidebar-row-menu"')
|
||||
expect(app).toContain('const archivedListsOpen = ref(false)')
|
||||
expect(app).toContain('v-if="archivedListsOpen"')
|
||||
expect(css).toContain('.sidebar-row-menu{')
|
||||
expect(css).toMatch(/\.row-actions\{display:none[^}]*\}/)
|
||||
})
|
||||
})
|
||||
|
||||
describe('desktop sidebar collapse & folder scrollbar', () => {
|
||||
it('keeps overlay scrims out of the desktop grid layout', () => {
|
||||
expect(css).toContain('.scrim{display:none}')
|
||||
|
||||
Reference in New Issue
Block a user