test(e2e): measure the workspace panel width after its transition settles

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxoSHAyzMXvdtwcDJZcn57
This commit is contained in:
Claude 2026-10-05 19:15:25 +00:00
parent ed640ecc0b
commit 0ec06fcef5
No known key found for this signature in database

View File

@ -35,8 +35,9 @@ test("the bot's screen opens beside the chat while it works and steps back after
"src", "src",
SCREEN_URL, SCREEN_URL,
); );
// The live screen gets more room than a settings panel. // The live screen gets more room than a settings panel. The panel widens
expect((await sidePanel.boundingBox())!.width).toBeGreaterThan(400); // 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"); await captureScreenshot(page, testInfo, "workspace-screen-beside-chat");
// Once the work is done the conversation gets its full width back. // Once the work is done the conversation gets its full width back.