aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness/copy_link_probe.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-05 13:13:54 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-05 13:13:54 +0200
commit92b7afcb186d7aaf475939d58a0385f408425eeb (patch)
treea0283cdda0e91cf1af2a1ff7b1a0a896d3a4d1f4 /packages/meshbay-hub/tests/harness/copy_link_probe.py
parent97fa4cf78a826050b9d1df0b484a7794861cda80 (diff)
downloadmeshbay-92b7afcb186d7aaf475939d58a0385f408425eeb.tar.gz
feat(hub): say "N groups unreachable" on Search for a few seconds, not for goodHEAD0.18main
The line sat above the results for as long as the page was open. It is now said once a cross-group pass is over, for five seconds, in the same passing note as "Link copied" — moved out of copy-link.js into note.js (`say(text, ms)`), one note at a time for the whole page. The `.search-unreachable` rule goes with the line it styled. The copy-link probe now also checks in Chrome that the note goes by itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/harness/copy_link_probe.py')
-rw-r--r--packages/meshbay-hub/tests/harness/copy_link_probe.py8
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 }, '*');