test(e2e): close the radio, bubbles and score overlay gaps

The station popover check asserts the side it opens to against the room
above and below the fold and its 12 rem cap; the radio log tile is 8 x 4 as
004 requires, with 88 px Home rows at 640 px so it shows its rows; the live
bubbles probe turns bubbles on only when they are off, since the setting is
kept on the server; a new score overlay e2e draws the token, CPU and RAM
overlays from fixture tasks on the master branch.

🎯 Fix: 93 %
💥 Break: 3 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 % (style-home.css not covered by MEDUSA, reviewed by hand)
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-17 09:57:26 +00:00
1 parent 85e24fb68b
commit 53a69daeaf
6 files changed
+212 -9

No files matched your search

+15 -7
View File
@@ -52,8 +52,10 @@ PROBE = """(async () => {@HELPERS@
const poll = () => window.dispatchEvent(new Event("focus"));
const cleared = () => until(() => !layer.querySelector(".speech-bubble"), 30000);
document.dispatchEvent(new PointerEvent("pointerdown", {bubbles: true}));
toggle.click();
const on = Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000));
if (toggle.getAttribute("aria-pressed") !== "true") {
toggle.click();
}
const on =Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000));
await sleep(1500);
poll();
await sleep(3000);
@@ -204,18 +206,24 @@ class TestLiveBubbles(HubCase):
)
return [
{
"width": 1366,
"height": 768,
"url": f"{self.base}#stream",
"width": width,
"height": height,
"url": f"{self.base}?{width}#stream",
"wait": 1200,
"probe": probe,
"shot": str(OUT / f"{browser}-1366-live-bubbles.png"),
"shot": str(OUT / f"{browser}-{width}-live-bubbles.png"),
"gesture": True,
}
for width, height in base.WIDTHS
]
def check(self, data: dict) -> None:
found = data["results"][0]
self.assertEqual(len(data["results"]), len(base.WIDTHS), data)
for (width, _), found in zip(base.WIDTHS, data["results"], strict=True):
with self.subTest(width=width):
self.check_width(found)
def check_width(self, found: dict) -> None:
self.assertNotIn("error", found, found)
self.assertTrue(found["on"], found)
self.assertEqual(