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}');