fix: 串行化凭据所有权并响应桌面请求取消

This commit is contained in:
2026-09-08 13:16:11 +08:00
parent 8d9333d8b0
commit 0d225f308f
21 changed files with 1034 additions and 118 deletions
@@ -63,10 +63,10 @@ describe('EditorPane file switching', () => {
wrapper = mount(EditorPane, { attachTo: document.body })
await nextTick()
await vi.waitFor(() => expect(wrapper!.find('.cm-content').exists()).toBe(true))
await vi.waitFor(() => expect(wrapper!.find('.cm-content').exists()).toBe(true), { timeout: 10000 })
const textarea = wrapper.get('.cm-content')
expect(textarea.attributes('spellcheck')).toBe('true')
expect(textarea.attributes('lang')).toBe('en')
expect(textarea.attributes('aria-label')).toBe('Markdown source editor')
})
}, 15000) // Lazy source-editor module transforms need the same cold-start budget.
})