This commit is contained in:
@@ -110,6 +110,13 @@ describe('task and habit row decoration', () => {
|
||||
expect(css).toContain('.empty-action{')
|
||||
})
|
||||
|
||||
it('keeps cached today habits visible during background refresh', () => {
|
||||
expect(mvpPanel).toContain('readHabitGridCache<Habit>(week)')
|
||||
expect(mvpPanel).toContain('writeHabitGridCache(week, habits.value)')
|
||||
expect(mvpPanel).toContain("view === 'today-habits' && (habits.length || !busy)")
|
||||
expect(mvpPanel).not.toContain("view === 'today-habits' && busy\" class=\"empty-panel\">加载中…")
|
||||
})
|
||||
|
||||
it('keeps habit cards borderless so the rounded left edge has no visual gap', () => {
|
||||
expect(css).toMatch(/\.habit-row\{border:0;/)
|
||||
expect(css).not.toMatch(/\.habit-row\{[^}]*border-top:/)
|
||||
|
||||
Reference in New Issue
Block a user