feat: 完善模型用量趋势与全局手账卡片并补齐阶段验收

This commit is contained in:
2026-09-05 20:40:36 +08:00
parent 02dd585a4e
commit 8d626ee16b
38 changed files with 733 additions and 86 deletions
@@ -21,6 +21,12 @@ it('downloads a URL for inspection without automatically installing it', async (
await vi.waitFor(() => expect(useThemeStore().pendingInspection?.compatible).toBe(true))
expect(useThemeStore().isThemeInstalled('paper-moments')).toBe(false)
expect(wrapper.get('.inspection-result').text()).toContain('纸间时光')
await wrapper.findAll('button').find(button => button.text() === '预览主题效果')!.trigger('click')
const preview = wrapper.get('iframe')
expect(preview.attributes('sandbox')).toBe('')
expect(preview.attributes('srcdoc')).toContain('Content-Security-Policy')
expect(preview.attributes('srcdoc')).toContain('data-theme="paper-moments"')
expect(useThemeStore().isThemeInstalled('paper-moments')).toBe(false)
})
it('ignores a URL response after the dialog is cancelled', async () => {