From 7a83cc0c9f9c25c4704cec0ec423ca8559abbd29 Mon Sep 17 00:00:00 2001 From: Badcuban <108198679+badcuban@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:53:45 -0500 Subject: [PATCH] test(web): the panel-corner test gives a busy runner five seconds to composite the chat It waited the default second for the report in which the chat's scroller is its own layer; under load in CI that can take longer, failing the setup step rather than the check. The check on the report it then reads is unchanged. --- .../components/ChatView.desktop-window.browser.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/ChatView.desktop-window.browser.tsx b/apps/web/src/components/ChatView.desktop-window.browser.tsx index 279c43448..9f9bbe766 100644 --- a/apps/web/src/components/ChatView.desktop-window.browser.tsx +++ b/apps/web/src/components/ChatView.desktop-window.browser.tsx @@ -136,10 +136,14 @@ describe("ChatView (full app): the desktop app's window", () => { // it changes: wait for the one where the chat's scroller is drawn on // its own, so there is something to mask (an early frame can come // before it is). - await vi.waitFor(() => { - document.body.style.outline = document.body.style.outline ? "" : "0 solid transparent"; - expect(layers?.some((layer) => layer.drawsContent && layer.backendNodeId)).toBe(true); - }); + // A busy runner can take seconds to composite the chat after first paint. + await vi.waitFor( + () => { + document.body.style.outline = document.body.style.outline ? "" : "0 solid transparent"; + expect(layers?.some((layer) => layer.drawsContent && layer.backendNodeId)).toBe(true); + }, + { timeout: 5_000 }, + ); const masks = layers!.filter( (layer) => layer.drawsContent &&