Skip to content

Commit 61272e6

Browse files
wesbillmanMongo
andcommitted
test: restore inbox fullscreen pointer coverage
Signed-off-by: Wes <[email protected]> Co-authored-by: Mongo <81cabd2ca1792494372ed410283c00770c0cf35afca052e940fa522883212b45@buzz.block.builderlab.xyz>
1 parent eaa7b8b commit 61272e6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎tests/browser/inbox.spec.mjs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,9 @@ test("an in-head DM keeps exact focus and Escape returns from an empty narrow li
10471047
const mediaOpener = detail.getByRole("button", {
10481048
name: "Open video fullscreen",
10491049
});
1050-
// The inline controls overlap this button; keyboard activation keeps this
1051-
// test on its portal focus/dismissal contract instead of pointer geometry.
1052-
await mediaOpener.focus();
1053-
await page.keyboard.press("Enter");
1050+
await detail.locator("[data-video-preview]").hover();
1051+
await expect(mediaOpener).toHaveCSS("pointer-events", "auto");
1052+
await mediaOpener.click();
10541053
const media = page.getByRole("dialog", { name: "Video attachment" });
10551054
await expect(media).toBeVisible();
10561055
await media.getByRole("button", { name: "Close fullscreen viewer" }).focus();

0 commit comments

Comments
 (0)