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:
parent
ed640ecc0b
commit
0ec06fcef5
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user