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 ["old@x.test", "me@x.test"]) { 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`);