summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_upload_controls_hidden.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/test_upload_controls_hidden.py')
-rw-r--r--packages/meshbay-hub/tests/test_upload_controls_hidden.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_upload_controls_hidden.py b/packages/meshbay-hub/tests/test_upload_controls_hidden.py
index ae1f444..7b8b0e3 100644
--- a/packages/meshbay-hub/tests/test_upload_controls_hidden.py
+++ b/packages/meshbay-hub/tests/test_upload_controls_hidden.py
@@ -125,8 +125,11 @@ def test_files_uploads_into_the_root_it_is_showing():
page = _component(FILES_APP.read_text(encoding="utf-8"), "FilesPanel")
upload = page[page.index("const uploadFile"):]
upload = upload[:upload.index("const makeDirectory")]
- assert "root: uploadRoot" in upload, "the node is left to choose"
- assert "currentPath.split('/')[0]" in upload
+ assert "dir: uploadDir" in upload, "the node is left to choose the folder"
+ assert "const uploadDir = currentPath" in upload, (
+ "the destination is not the folder on screen")
+ assert "root: uploadRoot" in upload, (
+ "a node too old for `dir` reads `root`, and gets nothing without it")
# ── Learning the answer ─────────────────────────────────────────────────────