test: stabilize conversation capture checks in release CI
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s

Focus the real Electron window before native keyboard input and give the
two long-history App scenarios the existing 15-second per-test allowance.
Keep all capture, source navigation, persistence, and keyboard assertions.

Record the initial Linux CI failures and the revised local validation:
5317 passed, 79 skipped, with typecheck, lint, and release notes verified.
Product behavior and approved Desktop/Agent 0.15.0 notes are unchanged.
This commit is contained in:
mesalogo
2026-09-28 00:00:19 +08:00
parent 5a6ba6c14f
commit 12594961fe
4 changed files with 31 additions and 2 deletions
+2 -2
View File
@@ -13979,7 +13979,7 @@ describe("App", () => {
expect(screen.getByLabelText('笔记标题')).toHaveValue('Captured discussion')
fireEvent.click(within(screen.getByRole('region', { name: '快速笔记' })).getByRole('button', { name: '加入笔记' }))
await waitFor(() => expect(api.magicNotes.create).toHaveBeenCalledWith(expect.objectContaining({ source: expect.objectContaining({ kind: 'conversation', conversationId: conversation.id, messageIds: messages.map(message => message.id) }), content: { version: 1, ops: [{ insert: 'Frozen edited capture\n' }] } })))
})
}, 15_000)
it('adds an assistant reply to an explicitly selected note and opens the returned entry in the full workspace', async () => {
await api.updates!.updateSettings({ magicNotesEnabled: true, magicNoteCommentMode: 'after-save-manual' })
@@ -14075,7 +14075,7 @@ describe("App", () => {
fireEvent.click(screen.getByRole('button', { name: '返回原会话' }))
expect(await screen.findByRole('button', { name: '原会话已不存在' })).toBeDisabled()
expect(screen.getByText('Saved text')).toBeVisible()
})
}, 15_000)
it('guards disabling Magic Notes with an unsaved quick draft before saving application settings', async () => {
await api.updates!.updateSettings({ magicNotesEnabled: true })