From 3d624b8a1280efcba65f8fb30e48234f344056a0 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Fri, 24 Apr 2026 16:45:47 +0000 Subject: [PATCH] test: optimize interactive E2E test using sendKeys --- integration-tests/shell-background.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integration-tests/shell-background.test.ts b/integration-tests/shell-background.test.ts index f28120e7e4..55a25dee65 100644 --- a/integration-tests/shell-background.test.ts +++ b/integration-tests/shell-background.test.ts @@ -82,23 +82,23 @@ describe('shell-background-tools', () => { // 1. Start a background process // We use a command that stays alive for a bit to ensure it shows up in lists - await run.type( + await run.sendKeys( "Run 'sleep 10 && echo hello-from-background' in the background.", ); - await run.type('\r'); + await run.sendKeys('\r'); // Wait for the model's canned response acknowledging the start await run.expectText('background', 30000); // 2. List background processes - await run.type('List my background processes.'); - await run.type('\r'); + await run.sendKeys('List my background processes.'); + await run.sendKeys('\r'); // Wait for the model's canned response showing the list await run.expectText('hello-from-background', 30000); // 3. Read the output - await run.type('Read the output of that process.'); - await run.type('\r'); + await run.sendKeys('Read the output of that process.'); + await run.sendKeys('\r'); // Wait for the model's canned response showing the output await run.expectText('hello-from-background', 30000); }, 60000);