From c60cc431249bd73e9189b2d0133121cb28463564 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 31 Jan 2025 12:06:55 +0200 Subject: [PATCH] fix(editor): Add missing explanation for ai execution test change (no-changelog) (#12971) --- .../editor-ui/src/components/CanvasChat/CanvasChat.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/editor-ui/src/components/CanvasChat/CanvasChat.test.ts b/packages/editor-ui/src/components/CanvasChat/CanvasChat.test.ts index f590c6ff3bc..41f27c39c06 100644 --- a/packages/editor-ui/src/components/CanvasChat/CanvasChat.test.ts +++ b/packages/editor-ui/src/components/CanvasChat/CanvasChat.test.ts @@ -265,6 +265,9 @@ describe('CanvasChat', () => { const input = await findByTestId('chat-input'); await userEvent.type(input, 'Test message'); + // Since runWorkflow resolve is mocked, the isWorkflowRunning will be false from the first run. + // This means that the loading state never gets a chance to appear. + // We're forcing isWorkflowRunning to be true for the first run. workflowsStore.isWorkflowRunning = true; await userEvent.keyboard('{Enter}');