aboutsummaryrefslogtreecommitdiffstats
path: root/tools/slow-image-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-10 07:18:22 -0700
committerAdam Soltys <[email protected]>2026-10-10 07:18:22 -0700
commite6a65e9921bc0e61ea17459e4bd12f64baf0c3b8 (patch)
treeb5a0f488299f4b9b6f8b2e2f7d6593b2f018714f /tools/slow-image-test.js
parentf76191c9296b1d5110d0360dfb106e9276cdc859 (diff)
downloadcoinosv3-e6a65e9921bc0e61ea17459e4bd12f64baf0c3b8.tar.gz
coinosv3-e6a65e9921bc0e61ea17459e4bd12f64baf0c3b8.zip
Videos: a tap on the picture goes full screen. The corner full-screen button is a reach on a phone, so a tap anywhere on a feed clip — outside the player's own big play button and control bar, judged from the tap's position since those live inside the video element — now goes full screen (a wide clip asks for landscape). Full screen, a tap pauses a playing clip, and a tap on a paused one (again outside its play button and controls) comes back out. A video's taps no longer reach the post either: a tap on the player's controls used to open the thread, which in full screen took the player out from under the reader. tools/video-tap-test.js
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'tools/slow-image-test.js')
-rw-r--r--tools/slow-image-test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slow-image-test.js b/tools/slow-image-test.js
index 463a855..103f6da 100644
--- a/tools/slow-image-test.js
+++ b/tools/slow-image-test.js
@@ -60,7 +60,7 @@ try {
await page.reload({ waitUntil: 'domcontentloaded' });
await waitText('receive', 20000);
await page.evaluate(() => document.querySelector('.app-nav-button[aria-label="Feed"]')?.click());
- check('both posts show', await waitText('slow picture', 30000) && await waitText('dead picture', 5000), JSON.stringify(await page.evaluate(() => [window.__live, (window.__reqlog || []).filter((r) => r.includes('[1')).slice(0, 4)])));
+ check('both posts show', await waitText('slow picture', 30000) && await waitText('dead picture', 5000));
check('the slow picture is a picture box, not a link', await page.evaluate((r) => { const n = eval(r); return !!n && !!n.querySelector('img.note-img') && ![...n.querySelectorAll('a')].some((a) => a.href.endsWith('/slow.png')); }, row('slow picture')),
await page.evaluate((r) => eval(r)?.innerHTML.slice(0, 300), row('slow picture')));
let loaded = false;