fix(hub): resize the 3D canvas with its box and repair five stale e2e
The 3D graph took its size once from the box, so a later scrollbar cut it at 390; a ResizeObserver now follows the box and is disconnected on dispose. The e2e follow78d4e4a(match swipe's ids method shadowed the case's request counter, now card_ids),af3555e(three reveal buttons),94bf0b4(legend toggle in the Home tile head),a4f7017(the runner needs SHELL for its login shell) and50363b1(rules live in their own Controls tab). 🎯 Fix: 85 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 82 🚦 Gate: ⛔ fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6e8b4a923
commit
ccc80f17c1
6 files changed
+23
-15
No files matched your search
@@ -110,7 +110,7 @@ class TestRevealWithheld(base.OrchestratorE2ECase):
|
||||
|
||||
def check(self, data: dict, browser: str, signs: bool) -> None:
|
||||
self.assertEqual([error for error in data["errors"] if "(style-src-elem)" not in error and "/favicon.ico" not in error], [])
|
||||
hidden = {"hidden": ["masked", "content withheld", None], "buttons": ["Reveal", "Reveal"], "masked": True, "clear": []}
|
||||
hidden = {"hidden": ["masked", "content withheld", None], "buttons": ["Reveal all 2", "Reveal", "Reveal"], "masked": True, "clear": []}
|
||||
results = iter(data["results"])
|
||||
for width, _ in WIDTHS:
|
||||
ids = self.sets[width]
|
||||
@@ -118,7 +118,7 @@ class TestRevealWithheld(base.OrchestratorE2ECase):
|
||||
with self.subTest(browser=browser, width=width):
|
||||
self.assertNotIn("error", show, show)
|
||||
self.assertEqual(show["one"], hidden, show)
|
||||
self.assertEqual(show["all"], {**hidden, "buttons": ["Reveal all 2", "Reveal", "Reveal"]}, show)
|
||||
self.assertEqual(show["all"], hidden, show)
|
||||
self.assertEqual(show["leaked"], [], show)
|
||||
one_id, all_id = (ids[name].split(":", 1)[1] for name in ("ONE", "ALL"))
|
||||
self.assertEqual(one["posted"], [[f"review/{one_id}/reveal/sign", ["app.py"]], *([[f"review/{one_id}/reveal", ["app.py"]]] if signs else [])], one)
|
||||
@@ -127,7 +127,7 @@ class TestRevealWithheld(base.OrchestratorE2ECase):
|
||||
self.assertEqual(one["after"], {"hidden": ["revealed", "content withheld", None], "buttons": ["Reveal"], "masked": False, "clear": ["plain-example"]}, one)
|
||||
self.assertEqual(every["after"], {"hidden": ["revealed", "revealed", None], "buttons": [], "masked": False, "clear": list(WORDS)}, every)
|
||||
else:
|
||||
self.assertEqual((one["after"], every["after"]), (hidden, {**hidden, "buttons": ["Reveal all 2", "Reveal", "Reveal"]}))
|
||||
self.assertEqual((one["after"], every["after"]), (hidden, hidden))
|
||||
self.assertEqual((one["kept"], every["kept"]), ([], []))
|
||||
self.assertFalse(any(found["wide"] for found in (show, one, every)), width)
|
||||
|
||||
|
||||
Reference in new issue
Block a user