The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(conversations): update submitComposerText assertion
Steven Enamakel85e0efdc9979
diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsxindex de6c157361..a27d3339e7 100644--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx@@ -255,6 +255,7 @@ async function renderChat(}async function submitComposerText(text: string) {+ const previousSends = mockChatSend.mock.calls.length + mockChatSendWithAck.mock.calls.length;const input = screen.getByRole('textbox');await act(async () => {input.textContent = text;@@ -265,7 +266,11 @@ async function submitComposerText(text: string) {await act(async () => {fireEvent.click(sendButton);});- await waitFor(() => expect(mockChatSend).toHaveBeenCalledTimes(1));+ await waitFor(() =>+ expect(mockChatSend.mock.calls.length + mockChatSendWithAck.mock.calls.length).toBeGreaterThan(+ previousSends+ )+ );}async function clickSendButtonWithDraft(text: string) {