chore(e2e): Stabilize PNG integration test part2 (#7670)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
Adam Weidman
2025-09-03 19:04:23 +00:00
committed by GitHub
parent 7c667e100e
commit 3f26f9615c

View File

@@ -130,11 +130,10 @@ 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}, what tool is being used and how long has it been running`;
const prompt = `describe the image ${filename}, what is the name of the tool 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.replace(/\s/g, '').includes('googlesearch')).toBeTruthy();
expect(lower.includes('21')).toBeTruthy();