Skip to content

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

gui tests: routing-model-rest waits for the frame that rests the Opus row (#2115)

yetone158888d04f31
diff --git a/internal/gui/tests/routing-model-rest.test.cjs b/internal/gui/tests/routing-model-rest.test.cjs
index 64f60ea0d..8a5a67067 100644
--- a/internal/gui/tests/routing-model-rest.test.cjs
+++ b/internal/gui/tests/routing-model-rest.test.cjs
@@ -111,6 +111,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
for (const user of ["[email protected]", "[email protected]"]) {
const opus = stage(user, "claude-opus-5.5"), flash = stage(user, "gemini-3.8-flash");
await opus.first().waitFor({ state: "attached" });
+ // a row is in before the frame that says how it rests: under load
+ // the class was read before that frame came (#2115)
+ await opus.first().evaluate((e) => new Promise((done) => { const ok = () => e.classList.contains("rest") ? done() : requestAnimationFrame(ok); setTimeout(done, 5000); ok(); }));
assert.equal(await opus.count(), 1, `${user}: one Opus row`);
assert.equal(await flash.count(), 1, `${user}: one gemini-3.8-flash row`);
assert(!(await flash.evaluate((e) => e.classList.contains("rest"))), `${user}: gemini-3.8-flash rests with Opus`);