aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_spa_ordering.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/test_spa_ordering.py')
-rw-r--r--packages/meshbay-hub/tests/test_spa_ordering.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_spa_ordering.py b/packages/meshbay-hub/tests/test_spa_ordering.py
index ba042d1..1c36d09 100644
--- a/packages/meshbay-hub/tests/test_spa_ordering.py
+++ b/packages/meshbay-hub/tests/test_spa_ordering.py
@@ -273,7 +273,9 @@ def test_a_multi_file_download_waits_for_each_picker():
# Anchored on the loop rather than on the markup around it: the toolbar
# moved from a dropdown to icon buttons and took the old wrapper with it,
# while the property under test — one picker at a time — did not change.
- block = app[app.index("for (const e of selectedFiles)"):]
+ # The loop is over `files` since the toolbar and the right-click menu
+ # share one action list.
+ block = app[app.index("for (const e of files)"):]
block = block[:block.index("\n")]
assert "await downloadFile(e)" in block, (
"downloads are fired without awaiting again; only the first will ask "