diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-13 00:30:39 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-13 00:30:39 +0200 |
| commit | e9a93c21ff28daa6f4017849b42fe073a5ee2005 (patch) | |
| tree | ff5ff2d507e763f484c0ddb0805f0750c8dd8e18 /packages/meshbay-node/tests/test_windows_node_lifecycle.py | |
| parent | 13e7980071ab11b07b5d473e43506c6cb4ab637e (diff) | |
| download | meshbay-e9a93c21ff28daa6f4017849b42fe073a5ee2005.tar.gz | |
test(node): look for Node in the menu under the avatar
Node and Create group left the sidebar for the user menu. A source-reading
test still looked for the old `showNode=` expression and failed everywhere;
the installed application's end-to-end test waited for "Create group" in the
sidebar and would have timed out. Both now check the menu, and the packaging
guide says where the two entries are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_windows_node_lifecycle.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_windows_node_lifecycle.py | 5 |
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 |