Skip to content

Commit 88d5787

Browse files
test(reactions): leave the pill before measuring hovered message actions
With the 100 ms first-open delay, the reactor preview opens while the pointer is still on the pill just clicked and can sit over the row on slower runners, so the following row hover was intercepted in WebKit CI. Move the pointer off and wait for the preview to close before the viewport loop. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Nikolaj Goodger <[email protected]>
1 parent dc393d7 commit 88d5787

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎tests/browser/reactions.spec.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ test("reaction plus opens a visible emoji-only picker, restores focus and publis
208208
"party",
209209
"https://a.test/media/reaction.png",
210210
]);
211+
// The pointer is still on the pill, so its reactor preview opens and would
212+
// sit over the row; leave the row before measuring the hovered actions.
213+
await page.mouse.move(0, 0);
214+
await expect(
215+
page.locator('.buzz-preview-card[role="tooltip"][data-open]'),
216+
).toHaveCount(0);
211217
for (const width of [360, 768, 1280]) {
212218
await page.setViewportSize({ width, height: 900 });
213219
await root.hover();

0 commit comments

Comments
 (0)