From cb255a16195ac135241789244bd44d134396d560 Mon Sep 17 00:00:00 2001 From: Adam Weidman <65992621+adamfweidman@users.noreply.github.com> Date: Wed, 3 Sep 2025 04:12:15 +0000 Subject: [PATCH] chore(e2e): Stabilize e2e test by adding a more descriptive prompt (#7599) --- integration-tests/utf-bom-encoding.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration-tests/utf-bom-encoding.test.ts b/integration-tests/utf-bom-encoding.test.ts index 0cdd305166..30f5d0c744 100644 --- a/integration-tests/utf-bom-encoding.test.ts +++ b/integration-tests/utf-bom-encoding.test.ts @@ -130,12 +130,13 @@ d('BOM end-to-end integration', () => { const imageContent = readFileSync(imagePath); const filename = 'gemini-screenshot.png'; writeFileSync(join(dir, filename), imageContent); - const prompt = `describe the image ${filename}`; + const prompt = `describe the image ${filename}, what tool is being used and how long has it been running`; const output = await rig.run(prompt); await rig.waitForToolCall('read_file'); const lower = output.toLowerCase(); expect(lower.includes('screenshot')).toBeTruthy(); expect(lower.includes('gemini cli')).toBeTruthy(); - expect(lower.includes('terminal')).toBeTruthy(); + expect(lower.replace(/\s/g, '').includes('googlesearch')).toBeTruthy(); + expect(lower.includes('21')).toBeTruthy(); }); });