From e9a93c21ff28daa6f4017849b42fe073a5ee2005 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Tue, 13 Oct 2026 00:30:39 +0200 Subject: 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 --- packages/meshbay-node/tests/test_windows_node_lifecycle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-node/tests/test_windows_node_lifecycle.py') 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 -- cgit v1.2.3