fix(overlay): overlay windows are read-only, no decoder connection or saves (1.76.1)

This commit is contained in:
larssand committed 2026-11-07 17:14:39 +01:00
1 parent 3d0ab0c4b7
commit 54989d8597
7 files changed
+21 -8

No files matched your search

+4
View File
@@ -91,6 +91,7 @@ export async function runObsPopupSmoke({ evaluate, navigate, fill, savedState, w
await evaluate(`[...document.querySelectorAll(".nav-item")].find(el => el.textContent === "Overlay")?.click()`);
await waitFor(async () => await evaluate('Boolean(document.getElementById("overlayLaunchObs"))'), "admin overlay page shows the launch buttons");
const before = await listPageTargets();
const decoderConnectsBefore = decoder.totalConnections();
// A synthetic .click() is not a trusted gesture, so Chrome's popup blocker would
// silently swallow the window.open() this button triggers; dispatch a real click.
await realClick("#overlayLaunchObs");
@@ -118,6 +119,9 @@ export async function runObsPopupSmoke({ evaluate, navigate, fill, savedState, w
await pause(2500);
const secondClock = await clockAt();
assert.notEqual(secondClock, firstClock, "popup clock advances live without a manual reload");
// Read-only: the popup (like an overlay on another computer) opens no decoder connection
// of its own and never saves, so it cannot undo a start or laps from Race Day.
assert.equal(decoder.totalConnections(), decoderConnectsBefore, "the overlay window does not connect to the decoder");
// Back on the admin side, the Race Day view was replaced by the Overlay nav view
// above, so raceDayPause no longer exists in the DOM until we return to it.