aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_android_shell.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-02 12:14:30 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-03 14:24:54 +0200
commit3af2c0205071ea74fd7f2b1b1bbe4d47cdd1357b (patch)
tree442dca7d76034dc38dc72b48d8a9f4036cd4cfcb /packages/meshbay-hub/tests/test_android_shell.py
parent6ebfc86392a74dc0ae18f0d2703a3f91b8977d46 (diff)
downloadmeshbay-3af2c0205071ea74fd7f2b1b1bbe4d47cdd1357b.tar.gz
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 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_android_shell.py')
-rw-r--r--packages/meshbay-hub/tests/test_android_shell.py11
1 files changed, 11 insertions, 0 deletions
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():