From 79130a9d4eb95db35b1d84f14f9b1b18d18299a7 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 22 Aug 2026 11:50:35 +0200 Subject: fix: update source-reading tests that drifted from the code - test_transport_contracts: CreateGroupPage was refactored into a routing wrapper; assertions now read CreateGroupFormSimple - test_task_lifetime: _spawn now uses an _on_done wrapper instead of a bare self._tasks.discard callback; assertion checks both parts - test_video_buffer_ceiling: target the real updateend handler, not the settled() utility; add awaitingInitRef to the MSE harness scope - test_video_seek: silence debug console.log in window_leak harness so it does not pollute the JSON output Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-hub/tests/test_transport_contracts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-hub/tests/test_transport_contracts.py') diff --git a/packages/meshbay-hub/tests/test_transport_contracts.py b/packages/meshbay-hub/tests/test_transport_contracts.py index 5da8104..5dc3b7b 100644 --- a/packages/meshbay-hub/tests/test_transport_contracts.py +++ b/packages/meshbay-hub/tests/test_transport_contracts.py @@ -155,7 +155,7 @@ def test_the_form_asks_one_question_not_two(app): So there is one selector. "Open" is what makes a group listed, and the request derives the rest. """ - form = app[app.index("function CreateGroupPage"):] + form = app[app.index("function CreateGroupFormSimple"):] form = form[:form.index("\n}\n")] assert "setVisibility(" not in form, "the visibility selector is back" @@ -185,7 +185,7 @@ def test_the_strings_the_visibility_box_used_are_gone(app): def test_the_form_starts_on_a_combination_the_api_accepts(app): - form = app[app.index("function CreateGroupPage"):] + form = app[app.index("function CreateGroupFormSimple"):] assert "useState('invite')" in form[:form.index("return html")] -- cgit v1.2.3