fix: honor complete REA contract and synchronize UI verification

This commit is contained in:
Agent Workbench Dev
2026-11-06 07:26:36 +08:00
parent b8a5f95018
commit 0c4895b7c8
8 changed files with 51 additions and 1 deletions
+5
View File
@@ -64,8 +64,13 @@ try {
await panel().scrollIntoViewIfNeeded(); await shot('narrow-stale');
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1), true); mark('390px viewport keeps requirement controls usable without page overflow');
await page.setViewportSize({ width: 1440, height: 1080 });
// Drain the revision-triggered 120 ms refresh before deliberately holding the
// manual refresh. Otherwise interception can disable the button we are about
// to click and turn this ownership test into a test-created deadlock.
await page.waitForLoadState('networkidle');
let release = null, held = false;
await page.route('**/requirements?taskId=' + f.session.taskId, async route => {
if (held) { await route.continue(); return; }
held = true; await new Promise(resolve => { release = resolve; });
try { await route.continue(); } catch (error) { if (!/Route is already handled|Invalid InterceptionId/.test(error.message)) errors.push(error.message); }
});