diff options
Diffstat (limited to 'tools/feed-media-views-test.js')
| -rw-r--r-- | tools/feed-media-views-test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/feed-media-views-test.js b/tools/feed-media-views-test.js index 14d766e..6649a93 100644 --- a/tools/feed-media-views-test.js +++ b/tools/feed-media-views-test.js @@ -177,6 +177,13 @@ try { st = await pagerState(); check('...the three vertical clips, nothing over them, sound on', st.n === 3 && st.src === 'a.mp4' && !st.show && st.meta === '0' && await page.evaluate(() => !document.querySelector('.media-pager video').muted), JSON.stringify(st)); + // a tap anywhere on the playing clip (not the seek bar or a button) pauses it, with its details up; another plays on + await page.mouse.click(195, 300); await sleep(400); + st = await pagerState(); + check('a tap on the playing clip pauses it, its details up', !st.playing[0] && st.show, JSON.stringify(st)); + await page.mouse.click(195, 300); await sleep(600); + st = await pagerState(); + check('...another plays it on, the details down', st.playing[0] && !st.show, JSON.stringify(st)); await sleep(1000); let ss = await srcs(); // (the next two get a head start fetched into the cache — pager-eager-test — but no player of their own) |
