Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: update test files to use new chat harness API

Steven Enamakelc10e96c2ec2b
diff --git a/app/src/pages/__tests__/Conversations.attachments.test.tsx b/app/src/pages/__tests__/Conversations.attachments.test.tsx
index 36a44b7746..34cc71decb 100644
--- a/app/src/pages/__tests__/Conversations.attachments.test.tsx
+++ b/app/src/pages/__tests__/Conversations.attachments.test.tsx
@@ -260,7 +260,7 @@ async function renderWithSelectedThread() {
</Provider>
);
- const textarea = await screen.findByPlaceholderText('How can I help you today?');
+ const textarea = await screen.findByPlaceholderText('Send a message...');
return { store, textarea, thread };
}
diff --git a/app/src/pages/__tests__/Conversations.render.test.tsx b/app/src/pages/__tests__/Conversations.render.test.tsx
index e8fed2e61a..50e83d7b8b 100644
--- a/app/src/pages/__tests__/Conversations.render.test.tsx
+++ b/app/src/pages/__tests__/Conversations.render.test.tsx
@@ -364,7 +364,7 @@ async function renderSelectedConversation(
});
});
- const textarea = await screen.findByPlaceholderText('How can I help you today?');
+ const textarea = await screen.findByPlaceholderText('Send a message...');
return { store: renderedStore, textarea, thread };
}
@@ -1024,7 +1024,7 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
await act(async () => {
await renderConversations({ thread: emptyThreadState, socket: socketState('connected') });
});
- const textarea = await screen.findByPlaceholderText('How can I help you today?');
+ const textarea = await screen.findByPlaceholderText('Send a message...');
vi.mocked(threadApi.createNewThread).mockClear();
vi.mocked(chatSend).mockClear();
@@ -2502,7 +2502,7 @@ describe('Conversations — open-session resume (View work)', () => {
// Let the mount-resume effect settle, then seed the selected thread's task
// board with a card that has a live session (seeding before mount gets
// clobbered by turn-state hydration).
- await screen.findByPlaceholderText('How can I help you today?');
+ await screen.findByPlaceholderText('Send a message...');
const selectedId = store.getState().thread.selectedThreadId ?? 'board-thread';
await act(async () => {
store.dispatch(
diff --git a/app/test/e2e/helpers/chat-harness.ts b/app/test/e2e/helpers/chat-harness.ts
index abe83fd451..19e325c119 100644
--- a/app/test/e2e/helpers/chat-harness.ts
+++ b/app/test/e2e/helpers/chat-harness.ts
@@ -6,7 +6,7 @@
* needs:
*
* - `button[title="New thread"]` — icon-only button, no text
- * - `textarea[placeholder="How can I help you today?"]` — React-controlled
+ * - `textarea[placeholder="Send a message..."]` — React-controlled
* input that should be driven through WebDriver so React observes
* the same input events a user would produce
* - `button[aria-label="Send message"]` — icon-only button
@@ -57,7 +57,7 @@ export async function clickByTitle(title: string, timeoutMs = 6_000): Promise<bo
return false;
}
-const COMPOSER_SELECTOR = 'textarea[placeholder="How can I help you today?"]';
+const COMPOSER_SELECTOR = 'textarea[placeholder="Send a message..."]';
/** True once the Conversations page has mounted its composer/header.
*
diff --git a/app/test/e2e/specs/chat-tool-error-recovery.spec.ts b/app/test/e2e/specs/chat-tool-error-recovery.spec.ts
index 0653a602d4..022b5d7819 100644
--- a/app/test/e2e/specs/chat-tool-error-recovery.spec.ts
+++ b/app/test/e2e/specs/chat-tool-error-recovery.spec.ts
@@ -155,7 +155,7 @@ describe('Chat tool-error recovery', () => {
'button[aria-label="Send message"]'
) as HTMLButtonElement | null;
const ta = document.querySelector(
- 'textarea[placeholder="How can I help you today?"]'
+ 'textarea[placeholder="Send a message..."]'
) as HTMLTextAreaElement | null;
return (btn !== null && !btn.disabled) || (ta !== null && !ta.disabled);
});
diff --git a/app/test/playwright/specs/chat-conversation-history.spec.ts b/app/test/playwright/specs/chat-conversation-history.spec.ts
index 63d3514f00..5f73f08617 100644
--- a/app/test/playwright/specs/chat-conversation-history.spec.ts
+++ b/app/test/playwright/specs/chat-conversation-history.spec.ts
@@ -116,7 +116,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-harness-cancel.spec.ts b/app/test/playwright/specs/chat-harness-cancel.spec.ts
index 3e4f4bff32..f70196c4b4 100644
--- a/app/test/playwright/specs/chat-harness-cancel.spec.ts
+++ b/app/test/playwright/specs/chat-harness-cancel.spec.ts
@@ -109,7 +109,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
@@ -136,7 +136,7 @@ test.describe('Chat Harness - Cancel', () => {
await expect(page.getByText(piece, { exact: false })).toHaveCount(0, { timeout: 5_000 });
}
- const composer = page.getByPlaceholder('How can I help you today?');
+ const composer = page.getByPlaceholder('Send a message...');
await expect(composer).toBeEnabled();
await composer.fill('post-cancel probe message');
await expect(page.getByTestId('send-message-button')).toBeEnabled();
diff --git a/app/test/playwright/specs/chat-harness-scroll-render.spec.ts b/app/test/playwright/specs/chat-harness-scroll-render.spec.ts
index 07ea34c17c..6477293dd2 100644
--- a/app/test/playwright/specs/chat-harness-scroll-render.spec.ts
+++ b/app/test/playwright/specs/chat-harness-scroll-render.spec.ts
@@ -117,7 +117,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-harness-send-stream.spec.ts b/app/test/playwright/specs/chat-harness-send-stream.spec.ts
index 42f35cd837..2fce1c223e 100644
--- a/app/test/playwright/specs/chat-harness-send-stream.spec.ts
+++ b/app/test/playwright/specs/chat-harness-send-stream.spec.ts
@@ -113,7 +113,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-harness-subagent.spec.ts b/app/test/playwright/specs/chat-harness-subagent.spec.ts
index 1f2b33c724..4a8459d4c0 100644
--- a/app/test/playwright/specs/chat-harness-subagent.spec.ts
+++ b/app/test/playwright/specs/chat-harness-subagent.spec.ts
@@ -130,7 +130,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts b/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts
index ee3f6f666f..450b7a1016 100644
--- a/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts
+++ b/app/test/playwright/specs/chat-harness-wallet-flow.spec.ts
@@ -152,7 +152,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-management-functional.spec.ts b/app/test/playwright/specs/chat-management-functional.spec.ts
index 8e739cdf92..526f672279 100644
--- a/app/test/playwright/specs/chat-management-functional.spec.ts
+++ b/app/test/playwright/specs/chat-management-functional.spec.ts
@@ -112,12 +112,12 @@ test.describe('Chat management functional coverage', () => {
await attachTxt();
await expect(page.getByText('notes.txt')).toBeVisible();
- await page.getByPlaceholder('How can I help you today?').fill('Summarize this file');
+ await page.getByPlaceholder('Send a message...').fill('Summarize this file');
await page.getByTestId('send-message-button').click();
await expect(page.getByText('Attachment received by the assistant.')).toBeVisible({
timeout: 30_000,
});
- await expect(page.getByPlaceholder('How can I help you today?')).toBeEnabled();
+ await expect(page.getByPlaceholder('Send a message...')).toBeEnabled();
await expect
.poll(
diff --git a/app/test/playwright/specs/chat-multi-tool-round.spec.ts b/app/test/playwright/specs/chat-multi-tool-round.spec.ts
index e00b2235f0..52f0ea42f6 100644
--- a/app/test/playwright/specs/chat-multi-tool-round.spec.ts
+++ b/app/test/playwright/specs/chat-multi-tool-round.spec.ts
@@ -146,7 +146,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-tool-call-flow.spec.ts b/app/test/playwright/specs/chat-tool-call-flow.spec.ts
index 9dfed3a22c..b0b3c8784f 100644
--- a/app/test/playwright/specs/chat-tool-call-flow.spec.ts
+++ b/app/test/playwright/specs/chat-tool-call-flow.spec.ts
@@ -136,7 +136,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts b/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
index 41d1c7cc76..36666cdb19 100644
--- a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
+++ b/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
@@ -99,7 +99,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
@@ -148,7 +148,7 @@ test.describe('Chat Tool Error Recovery', () => {
})
.toBeNull();
- const composer = page.getByPlaceholder('How can I help you today?');
+ const composer = page.getByPlaceholder('Send a message...');
await expect(composer).toBeEnabled();
await setMockBehavior('llmStreamScript', '');
diff --git a/app/test/playwright/specs/conversations-web-channel-flow.spec.ts b/app/test/playwright/specs/conversations-web-channel-flow.spec.ts
index e1dabf3c29..be1388e58a 100644
--- a/app/test/playwright/specs/conversations-web-channel-flow.spec.ts
+++ b/app/test/playwright/specs/conversations-web-channel-flow.spec.ts
@@ -112,7 +112,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts b/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts
index 27fa6d0c61..7881325882 100644
--- a/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts
+++ b/app/test/playwright/specs/harness-channel-bridge-flow.spec.ts
@@ -100,7 +100,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts b/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
index f59c9a9734..0974f57ed3 100644
--- a/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
+++ b/app/test/playwright/specs/harness-composio-tool-flow.spec.ts
@@ -125,7 +125,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
index 02618ece0d..bfffe044d1 100644
--- a/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
+++ b/app/test/playwright/specs/harness-cron-prompt-flow.spec.ts
@@ -102,7 +102,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/harness-search-tool-flow.spec.ts b/app/test/playwright/specs/harness-search-tool-flow.spec.ts
index 7ea775c822..472d32fbbc 100644
--- a/app/test/playwright/specs/harness-search-tool-flow.spec.ts
+++ b/app/test/playwright/specs/harness-search-tool-flow.spec.ts
@@ -111,7 +111,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/user-journey-full-task.spec.ts b/app/test/playwright/specs/user-journey-full-task.spec.ts
index 30c589f227..a8e31c71a0 100644
--- a/app/test/playwright/specs/user-journey-full-task.spec.ts
+++ b/app/test/playwright/specs/user-journey-full-task.spec.ts
@@ -102,7 +102,7 @@ async function waitForSocketConnected(page: Page): Promise<void> {
async function sendMessage(page: Page, prompt: string): Promise<void> {
await waitForSocketConnected(page);
await dismissWalkthroughIfPresent(page);
- await page.getByPlaceholder('How can I help you today?').fill(prompt);
+ await page.getByPlaceholder('Send a message...').fill(prompt);
await dismissWalkthroughIfPresent(page);
await expect(page.getByTestId('send-message-button')).toBeEnabled();
await page.getByTestId('send-message-button').click();
diff --git a/app/test/playwright/specs/voice-mode.spec.ts b/app/test/playwright/specs/voice-mode.spec.ts
index f89df3a315..23d12e2b6e 100644
--- a/app/test/playwright/specs/voice-mode.spec.ts
+++ b/app/test/playwright/specs/voice-mode.spec.ts
@@ -24,7 +24,7 @@ async function openChat(page: Page): Promise<void> {
await skipButton.first().click({ force: true });
await expect(skipButton.first()).toBeHidden();
}
- await expect(page.getByPlaceholder('How can I help you today?')).toBeVisible();
+ await expect(page.getByPlaceholder('Send a message...')).toBeVisible();
}
async function installGetUserMediaError(page: Page, name: string): Promise<void> {
@@ -77,7 +77,7 @@ test.describe('Voice mode integration', () => {
await switchChatIntoMicComposer(page);
await page.getByRole('button', { name: 'Switch to text' }).click();
- await expect(page.getByPlaceholder('How can I help you today?')).toBeVisible();
+ await expect(page.getByPlaceholder('Send a message...')).toBeVisible();
await expect(page.getByTestId('send-message-button')).toBeVisible();
});