From c09f1b9c93b01aab33953ee085814edee1d4cf8b Mon Sep 17 00:00:00 2001 From: lucaronin Date: Fri, 29 May 2026 20:46:35 +0200 Subject: [PATCH] test: stabilize ai workspace title persistence --- src/components/AiWorkspace.test.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/AiWorkspace.test.tsx b/src/components/AiWorkspace.test.tsx index bed2c5e2..02349083 100644 --- a/src/components/AiWorkspace.test.tsx +++ b/src/components/AiWorkspace.test.tsx @@ -528,9 +528,11 @@ describe('AiWorkspace', () => { vaultPath: '/tmp/vault', })) expect(screen.getAllByRole('button', { name: 'Archive chat' }).some((button) => !button.hasAttribute('disabled'))).toBe(true) - expect(onConversationSettingsChange).toHaveBeenLastCalledWith([ - expect.objectContaining({ title: 'Quarterly sponsor outreach' }), - ]) + await waitFor(() => { + expect(onConversationSettingsChange).toHaveBeenLastCalledWith([ + expect.objectContaining({ title: 'Quarterly sponsor outreach' }), + ]) + }) }) it('renames a persisted default chat title after the first assistant reply', async () => {