fix: honor complete REA contract and synchronize UI verification
This commit is contained in:
@@ -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); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user