Skip to content

Commit d474401

Browse files
authored
test(beta): stabilize Design drag and culling baselines (#5458)
1 parent f39368e commit d474401

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

e2e/beta/specs/apps/design-culling.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ test("Design culling preserves a bounded preview pool during physical pan and zo
190190
);
191191
const surfaceBox = await surface.boundingBox();
192192
if (!surfaceBox) throw new Error("missing overview canvas surface");
193+
await Promise.all(
194+
page
195+
.frames()
196+
.filter((frame) => frame !== page.mainFrame())
197+
.map((frame) => frame.waitForLoadState("load")),
198+
);
193199
await resetChurn(page);
194200
await page.mouse.move(
195201
surfaceBox.x + surfaceBox.width / 2,

e2e/beta/specs/apps/design-interactions.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,9 +1055,11 @@ test.describe("authenticated beta Design interactions", () => {
10551055
NESTED_FRAME_ID,
10561056
);
10571057

1058-
await page.mouse.move(sourceBox.x + 18, sourceBox.y + 11);
1058+
const grabX = sourceBox.x + sourceBox.width / 2;
1059+
const grabY = sourceBox.y + sourceBox.height / 2;
1060+
await page.mouse.move(grabX, grabY);
10591061
await page.mouse.down();
1060-
await page.mouse.move(sourceBox.x + 6, sourceBox.y + 11, { steps: 4 });
1062+
await page.mouse.move(grabX - 12, grabY, { steps: 4 });
10611063
await page.mouse.move(
10621064
targetBox.x + targetBox.width / 2,
10631065
targetBox.y + targetBox.height / 2,

0 commit comments

Comments
 (0)