Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

gui tests: routing-wb-restricted waits for the posted lift instead of a fixed 300ms (#2658)

yetone4bb93b325538
diff --git a/internal/gui/tests/routing-wb-restricted.test.cjs b/internal/gui/tests/routing-wb-restricted.test.cjs
index 3390dfcc1..05bbee32d 100644
--- a/internal/gui/tests/routing-wb-restricted.test.cjs
+++ b/internal/gui/tests/routing-wb-restricted.test.cjs
@@ -118,7 +118,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
// a reader scrolls down to it with the wheel
await reach(page, go);
await go.click();
- await page.waitForTimeout(300);
+ // the lift once it is posted: a fixed pause read it before the
+ // post reached the fake on a busy machine
+ for (let i = 0; i < 100 && !lifted.length; i++) await new Promise((r) => setTimeout(r, 50));
assert.deepEqual(lifted, [{ key: rest.key }]);
assert.deepEqual(errors, []);
});