test(chat): require interactive tool parity across advertised harnesses

This commit is contained in:
2026-10-20 18:12:59 +01:00
parent 68761652cf
commit 855de19a35
5 changed files with 115 additions and 6 deletions
+6
View File
@@ -146,6 +146,12 @@ try {
await page.waitForSelector('[data-form-id=form_cancel]');
await page.evaluate("[...document.querySelectorAll('[data-form-id=form_cancel] button')].find(button=>button.textContent==='Cancel question').click()");
await eventually(()=>page.evaluate("!document.querySelector('[data-form-id=form_cancel]')"));
assert.equal((await fetch(`http://${target}/fixture-shell`,{method:'POST'})).status,204);
await page.goto(`http://127.0.0.1:${port}/chat/${sessionId}`);
await page.waitForSelector('.chat-bg-task');
await page.click('.chat-bg-task');
await eventually(()=>page.evaluate("document.querySelector('.chat-bg-task-output')?.textContent==='Controlled background output'"));
if(process.env.PIPELINES_CAPTURE_DIR) await page.screenshot(join(process.env.PIPELINES_CAPTURE_DIR,'harness-background-output.png'));
assert.deepEqual(await page.evaluate("window.__errors"), []);
console.log("Model dialog, stable activity mark, keyboard/caret, Back restoration, send-to-bottom and all recovered approvals/questions passed.");
} finally {