Skip to content

Commit 2772d8e

Browse files
committed
test(ui): stabilize hovercard bridge pointer movement
1 parent 3d09d15 commit 2772d8e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎ui/src/e2e/session-progress-hovercard.e2e.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,18 @@ suite.define(() => {
575575
await card.waitFor({ state: "visible" });
576576
const firstBounds = await first.boundingBox();
577577
expect(firstBounds).not.toBeNull();
578+
const cardBounds = await card.boundingBox();
579+
expect(cardBounds).not.toBeNull();
578580
await pointer(first, "pointerout", {
579581
clientX: (firstBounds?.x ?? 0) + (firstBounds?.width ?? 0),
580582
clientY: (firstBounds?.y ?? 0) + (firstBounds?.height ?? 0) / 2,
581583
});
582584
await page.waitForTimeout(150);
583585
expect(await card.count()).toBe(1);
584-
await card.hover();
586+
await page.mouse.move(
587+
(cardBounds?.x ?? 0) + (cardBounds?.width ?? 0) / 2,
588+
(cardBounds?.y ?? 0) + (cardBounds?.height ?? 0) / 2,
589+
);
585590
expect(await card.count()).toBe(1);
586591
await page.mouse.move(900, 800);
587592
await page.waitForTimeout(50);

0 commit comments

Comments
 (0)