This commit is contained in:
@@ -128,6 +128,16 @@ describe('sidebar layout', () => {
|
||||
expect(app).toContain(':title="list.name" :aria-label="list.name"')
|
||||
})
|
||||
|
||||
it('only restores archived lists from the explicit restore action', () => {
|
||||
expect(app).toContain('class="list-row-main archived-row-label"')
|
||||
expect(app).not.toContain(':aria-label="`恢复清单:${list.name}`" @click="restoreList(list)"')
|
||||
expect(app).toContain('aria-label="恢复清单" @click="restoreList(list)"')
|
||||
})
|
||||
|
||||
it('loads archived lists during bootstrap so archived rows are visible after refresh', () => {
|
||||
expect(app).toContain('expandedFolders.value = new Set(folders.value.map((folder) => folder.id))\n await loadArchivedLists()\n await loadAll()')
|
||||
})
|
||||
|
||||
it('styles archived rows through the new list-row-main structure', () => {
|
||||
expect(css).toContain('.archived-row .list-row-main>svg{color:#c9a45c}')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user