aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_windows_node_lifecycle.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_windows_node_lifecycle.py')
-rw-r--r--packages/meshbay-node/tests/test_windows_node_lifecycle.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/meshbay-node/tests/test_windows_node_lifecycle.py b/packages/meshbay-node/tests/test_windows_node_lifecycle.py
index b85b6ea..6ca301b 100644
--- a/packages/meshbay-node/tests/test_windows_node_lifecycle.py
+++ b/packages/meshbay-node/tests/test_windows_node_lifecycle.py
@@ -330,8 +330,9 @@ def test_signing_in_sets_up_this_machines_node():
def test_the_node_section_shows_for_a_node_not_yet_linked():
"""It waited for the hub to hold a node key, which nothing gave it."""
app = _js(STATIC / "app.js")
- assert "showNode=${hasNodeKey || localNode}" in app
- assert "platform.capabilities.nodeAdmin && (hasNodeKey || localNode)" in app
+ shown = "platform.capabilities.nodeAdmin && (hasNodeKey || localNode)"
+ assert "showNode=${" + shown + "}" in app, "the link, in the user menu"
+ assert "route === '/node' && " + shown in app, "and the page it leads to"
effect = app.split("const signedInAs = user ? user.username : null;", 1)[1]
effect = effect.split("}, [signedInAs]);", 1)[0]
assert "platform.node.ensure(" in effect and "platform.node.installed()" in effect