test(chat): require interactive tool parity across advertised harnesses
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user