test(desktop): stabilize off-relay video menu

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
This commit is contained in:
Cea Stapleton Cordasco
2026-08-04 22:02:12 -05:00
parent ab80d19ab0
commit 29c467ddca
+3 -1
View File
@@ -1077,7 +1077,9 @@ test("right-click menus expose distinct selectors for links, relay video, and of
sha: MENU_OFF_RELAY_VIDEO_SHA,
filename: "external-clip.mp4",
});
const offRelayPlayer = page.getByTestId("video-player").last();
const offRelayPlayer = page
.getByTestId("video-player")
.filter({ has: page.locator(`video[src="${MENU_OFF_RELAY_VIDEO_URL}"]`) });
await expect(offRelayPlayer).toBeVisible();
await offRelayPlayer.click({ button: "right", force: true });