From 3af2c0205071ea74fd7f2b1b1bbe4d47cdd1357b Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 2 Oct 2026 12:14:30 +0200 Subject: fix(client): the node setup welcome is for a build that has a node Gated on capabilities.nodeAdmin rather than on any bridge, so a phone with no groups sees its invitations and the join link. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/test_android_shell.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/meshbay-hub/tests') diff --git a/packages/meshbay-hub/tests/test_android_shell.py b/packages/meshbay-hub/tests/test_android_shell.py index b2e0e4d..53b3914 100644 --- a/packages/meshbay-hub/tests/test_android_shell.py +++ b/packages/meshbay-hub/tests/test_android_shell.py @@ -173,6 +173,17 @@ def test_the_hub_address_is_injected_not_fetched(): assert "const HUB_BASE = ${JSONObject.quote(hub.base)}" in _read(SRC / "MainActivity.kt") +def test_the_node_setup_welcome_needs_a_node(): + """A phone has a bridge and no node: with no groups yet it must see the + invitations and the join link, not a node wizard it cannot finish.""" + from spa_source import STATIC + app = _read(STATIC / "app.js") + home = app.split("function HomePage(", 1)[1].split("\n}\n", 1)[0] + gate = home.split("<${SetupWelcome}", 1)[0] + assert "platform.capabilities.nodeAdmin" in gate + assert "platform.isNative" not in gate + + # ── The window ────────────────────────────────────────────────────────────── def test_nothing_is_granted_and_video_may_go_fullscreen(): -- cgit v1.2.3