feat(overlay): size setting for the OBS graphics, carried in the OBS URL (1.89.22)

This commit is contained in:
larssand committed 2026-11-13 21:37:44 +01:00
1 parent b4a6381f82
commit 80f8402971
10 files changed
+50 -12

No files matched your search

+7
View File
@@ -134,6 +134,13 @@ export async function runObsPopupSmoke({ evaluate, navigate, fill, savedState, w
return clock === (await clockAt());
}, "popup clock stops advancing once the session is paused");
// The size setting: 100 % by default, and the URL's ?scale= zooms the OBS graphics.
const zoomOf = () => popup.evaluate('getComputedStyle(document.querySelector(".overlay-shell-obs > *")).zoom');
assert.ok(new URL(target.url).searchParams.get("scale") === "100", "the OBS url carries the size");
assert.equal(await zoomOf(), "1", "default size: no zoom");
await popup.evaluate(`(() => { const url = new URL(location.href); url.searchParams.set("scale", "70"); location.replace(url.toString()); return true; })()`);
await popup.waitFor(async () => (await zoomOf()) === "0.7", "?scale=70 zooms the OBS graphics to 70 %");
assert.equal(dialogs.length, dialogsBefore, "no unexpected native dialog while opening or reading the obs popup");
console.log("PASS obs overlay opens as a real popup with the compact layout and live-updates independently of the admin page");
} finally {