diff options
Diffstat (limited to 'packages/meshbay-hub/tests/harness')
| -rw-r--r-- | packages/meshbay-hub/tests/harness/copy_link_probe.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/copy_link_probe.py b/packages/meshbay-hub/tests/harness/copy_link_probe.py index 50d269d..564d277 100644 --- a/packages/meshbay-hub/tests/harness/copy_link_probe.py +++ b/packages/meshbay-hub/tests/harness/copy_link_probe.py @@ -69,7 +69,7 @@ const pick = async (label) => { await wait(50); return true; }; -const note = () => (document.querySelector('.copy-link-note') || {}).textContent || ''; +const note = () => (document.querySelector('.page-note') || {}).textContent || ''; const closeMenus = async () => { document.body.dispatchEvent(new MouseEvent('mousedown', { bubbles: true })); await frame(); @@ -177,6 +177,12 @@ const rowNamed = (name) => [...document.querySelectorAll('tr.file-row')] cases.push({ case: 'photos', tile: Boolean(tile), labels: tileLabels, copied: fromTile, lightbox_button: Boolean(lb), lightbox_copied: COPIES.at(-1) || null }); + // Said, then gone (note.js): still up just after, not 2.5 s later. + const upAfterCopy = Boolean(document.querySelector('.page-note')); + await wait(2700); + cases.push({ case: 'note goes', up_after_copy: upAfterCopy, + up_later: Boolean(document.querySelector('.page-note')) }); + parent.postMessage({ cases, logs: LOGS, origin: location.origin }, '*'); } catch (err) { parent.postMessage({ error: String(err && (err.stack || err)), logs: LOGS }, '*'); |