From c6dc0535fb7ab06db05d73f33222bb2dd7c71a22 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 16 Oct 2026 08:56:17 +0000 Subject: [PATCH] test(devices): compare the re-floated player position in whole pixels The Simulator stream E2E failed the 0.57.0 release gate as flaky: the re-floated player's x was 285 while the dragged frame was 285.15625, so the exact float comparison never settled. Compare whole pixels, matching the drag assertion earlier in the same test. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01SJgWwVbexyFmdCVEcQPw7v --- tests/e2e/environment-devices-stream.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/environment-devices-stream.spec.ts b/tests/e2e/environment-devices-stream.spec.ts index cdaa51f55..f8ca35668 100644 --- a/tests/e2e/environment-devices-stream.spec.ts +++ b/tests/e2e/environment-devices-stream.spec.ts @@ -277,7 +277,8 @@ test.describe("Simulator stream", () => { await strip.getByRole("tab", { name: "Checkout flow" }).click({ button: "right" }); await page.getByRole("menuitem", { name: "Float over chat" }).click(); await expect(player).toBeVisible(); - await expect.poll(async () => (await player.boundingBox())?.x).toBe(floated!.x); + // Compare whole pixels: the dragged frame can sit on a subpixel offset that the restored frame lands on as a whole pixel. + await expect.poll(async () => Math.round((await player.boundingBox())!.x)).toBe(Math.round(floated!.x)); await player.getByRole("button", { name: "Dock device in its tab" }).click(); await expect(player).toHaveCount(0);