summaryrefslogtreecommitdiffstats
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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_spa_ordering.py b/packages/meshbay-hub/tests/test_spa_ordering.py
index 79d7c9a..9d02d42 100644
--- a/packages/meshbay-hub/tests/test_spa_ordering.py
+++ b/packages/meshbay-hub/tests/test_spa_ordering.py
@@ -210,8 +210,11 @@ def test_a_multi_file_download_waits_for_each_picker():
selected, one file downloaded.
"""
app = APP.read_text()
- block = app[app.index("${selectedFiles.length > 0 && html`"):]
- block = block[:block.index("`}")]
+ # 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)"):]
+ block = block[:block.index("\n")]
assert "await downloadFile(e)" in block, (
"downloads are fired without awaiting again; only the first will ask "
"for a save location and the others will be rejected")