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(chat): add tests for ChatNewWindowHero and ChatComposer components
Steven Enamakel16573e3a8651
diff --git a/app/src/components/chat/ChatNewWindowHero.test.tsx b/app/src/components/chat/ChatNewWindowHero.test.tsxindex 2a33523f6d..27ff4e6d16 100644--- a/app/src/components/chat/ChatNewWindowHero.test.tsx+++ b/app/src/components/chat/ChatNewWindowHero.test.tsx@@ -42,4 +42,14 @@ describe('ChatNewWindowHero', () => {fireEvent.click(restart);await waitFor(() => expect(restartCoreProcessMock).toHaveBeenCalled());});+ it('renders the prompt heading that used to live in the composer placeholder', () => {+ blockingStateMock.current = 'ok';+ render(<ChatNewWindowHero />);+ // Real heading now, not hint text inside the textarea. The e2e+ // `textExists('How can I help you today?')` check in+ // conversations-web-channel-flow depends on it being on-screen text.+ expect(+ screen.getByRole('heading', { name: 'How can I help you today?' })+ ).toBeInTheDocument();+ });});diff --git a/app/src/components/chat/__tests__/ChatComposer.test.tsx b/app/src/components/chat/__tests__/ChatComposer.test.tsxindex aa2188dc5b..5c4cb56c1d 100644--- a/app/src/components/chat/__tests__/ChatComposer.test.tsx+++ b/app/src/components/chat/__tests__/ChatComposer.test.tsx@@ -606,6 +606,7 @@ describe('ChatComposer', () => {expect(screen.getByRole('textbox')).toHaveAttribute('placeholder', 'chat.followupHint');});});+/*** Action-row layout. The reference design puts the attach button and the* read-only model chip on the left, and the mic beside the send/stop action