Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/e2e/environment-devices-stream.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading