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.