Clipboard and values specs wait out the side panel's animation

The clipboard spec selected text in the previous node's panel while it was
still sliding out after the paste, so the selection collapsed when it
unmounted and the canvas took the copy. The values spec read the panel's box
mid-slide-in, where the translate leaves the width a float off 400.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-16 14:12:10 +02:00
co-authored by Claude Opus 5.5
parent 88934f0264
commit f44d7ebfcf
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -83,8 +83,11 @@ test("a dictionary shows its shape, and its contents on request", async ({
await expect(summary).toContainText("record · 3 fields")
await expect(panel).not.toContainText("Recovered")
// A value cannot push the panel open, however long it is.
expect((await panel.boundingBox())?.width).toBe(PANEL_WIDTH)
// A value cannot push the panel open, however long it is. Polled, because
// the panel slides in and a box read mid-slide is a hair off 400.
await expect
.poll(async () => (await panel.boundingBox())?.width)
.toBe(PANEL_WIDTH)
// The contents are one click away.
await summary.click()