From 0ec06fcef5bf58ee09aba2fc4638b7f2114a4a93 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 19:15:25 +0000 Subject: [PATCH] test(e2e): measure the workspace panel width after its transition settles Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01KxoSHAyzMXvdtwcDJZcn57 --- apps/web/e2e/adaptive-workspace.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/e2e/adaptive-workspace.spec.ts b/apps/web/e2e/adaptive-workspace.spec.ts index b4b4416..5b85370 100644 --- a/apps/web/e2e/adaptive-workspace.spec.ts +++ b/apps/web/e2e/adaptive-workspace.spec.ts @@ -35,8 +35,9 @@ test("the bot's screen opens beside the chat while it works and steps back after "src", SCREEN_URL, ); - // The live screen gets more room than a settings panel. - expect((await sidePanel.boundingBox())!.width).toBeGreaterThan(400); + // The live screen gets more room than a settings panel. The panel widens + // over a CSS transition, so measure once it has settled. + await expect.poll(async () => (await sidePanel.boundingBox())?.width ?? 0).toBeGreaterThan(400); await captureScreenshot(page, testInfo, "workspace-screen-beside-chat"); // Once the work is done the conversation gets its full width back.