aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pager-eager-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-24 15:02:39 -0700
committerAdam Soltys <[email protected]>2026-10-24 15:02:39 -0700
commit9270bc52a33ef007d57d15b5e6aee95248c368a2 (patch)
tree1f51dec954fa7d976cc4d43281b57a789c59365e /tools/pager-eager-test.js
parenteec7abcfa329b6b405e69ffff54ae0a312f66860 (diff)
downloadcoinosv3-9270bc52a33ef007d57d15b5e6aee95248c368a2.tar.gz
coinosv3-9270bc52a33ef007d57d15b5e6aee95248c368a2.zip
Feed clips with a mouse: a big play/pause in the middle on hover that plays or pauses in place, a click on a playing clip pauses it (a paused one still opens the pager), and a tall clip is held to three quarters of a computer screen with its box narrowed to the clip's shapeHEADmaster
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'tools/pager-eager-test.js')
-rw-r--r--tools/pager-eager-test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pager-eager-test.js b/tools/pager-eager-test.js
index 3b5c5c3..3d980fb 100644
--- a/tools/pager-eager-test.js
+++ b/tools/pager-eager-test.js
@@ -117,6 +117,8 @@ async function run(saveData, slow = false) {
await waitFor(() => { const v = [...document.querySelectorAll('.notes-feed [data-key]')].find((n) => n.textContent.includes('clip c0 here')).querySelector('video.note-video'); return v && !v.paused && v.currentTime > 0; }, null, 10000);
const r = await feedRow('clip c0 here');
log = log.filter((e) => e.clip === 'c0');
+ // a mouse click on a playing clip pauses it; a paused one opens
+ await page.evaluate(([x, y]) => { const v = document.elementFromPoint(x, y); if (v && v.tagName === 'VIDEO') v.pause(); }, [r.x, r.y]);
await page.mouse.click(r.x, r.y);
check('the pager opens', await waitFor(() => !!document.querySelector('.media-pager.videos'), null, 4000));
await sleep(slow ? 8000 : 3000);