diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py b/packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py index 63390af..b15018b 100644 --- a/packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py +++ b/packages/meshbay-hub/tests/test_mnp_1_0_node_compat.py @@ -11,8 +11,6 @@ sends **nothing back**, so a control that speaks MNP 1.1 to it produces a thirty-second wait ending in a timeout, with nothing on screen to say the node simply cannot do this. Three of them were like that before these tests: -* Files' Upload button read `root.writable`, which a 1.0 node does not send — - it says `upload`. The button disappeared on every un-upgraded node. * The shared-directories toggles, eject and plug have no older equivalent at all. * The per-app folder pickers spoke `app_directories`, where a 1.0 node @@ -71,22 +69,6 @@ def test_the_capability_reads_the_version_rather_than_guessing(): # ── The three degraded paths ──────────────────────────────────────────────── -def test_the_upload_button_reads_the_older_flag_too(): - """ - A 1.0 node's roots carry `upload`; `writable` is the same answer renamed. - Reading only the new name hides the Upload button on every node that has - not been updated, which on the day the page ships is all of them. - """ - page = _component(FILES_APP.read_text(encoding="utf-8"), "FilesPanel") - decl = page[page.index("const currentRootWritable"):] - decl = decl[:decl.index(";") + 1] - assert "currentRoot.upload" in decl, ( - "the Upload button ignores the flag an older node actually sends") - assert "writable !== undefined" in decl, ( - "a root that is explicitly writable=false must stay read-only — " - "falling through to `upload` there would reopen it") - - def test_app_directories_fall_back_to_the_three_older_messages(): """ Videos, Music and Photos each had their own message before the generic op, @@ -160,16 +142,3 @@ def test_the_ack_is_read_in_both_shapes(app=None): assert legacy in block, f"{legacy} is not read as a fallback" assert "ack.chat_link_preview !== false" in page, ( "an absent link-preview switch must read as on, not off") - - -def test_the_attachment_root_falls_back_to_the_older_answer(): - """ - A 1.0 node's roots carry no `writable`, so nothing looks writable and the - paperclip would vanish. The group-wide `member_upload` flag is the only - answer such a node gives, and it is what gets used. - """ - page = GROUP_PAGE.read_text(encoding="utf-8") - block = page[page.index("const writableRoots"):] - block = block[:block.index("const commonProps")] - assert "legacyNode" in block and "memberUpload" in block - assert "writable === undefined" in block |