aboutsummaryrefslogtreecommitdiffstats
path: root/tools/video-autoplay-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/video-autoplay-test.js')
-rw-r--r--tools/video-autoplay-test.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/video-autoplay-test.js b/tools/video-autoplay-test.js
index 583c908..93453ee 100644
--- a/tools/video-autoplay-test.js
+++ b/tools/video-autoplay-test.js
@@ -62,12 +62,11 @@ try {
localStorage.setItem(k + ':follows', JSON.stringify({ tags: [['p', pk]], c: '', at: Math.floor(Date.now() / 1000) }));
localStorage.setItem(k + ':feedNotes', JSON.stringify(ns));
localStorage.setItem(k + ':profiles', JSON.stringify({ [pk]: { name: 'Clip Poster', t: Date.now() } }));
+ localStorage.setItem('btc-wallet-feed:' + k, 'following'); // new wallets open on Popular
}, [base, AUTHOR, seeded]);
await page.reload({ waitUntil: 'domcontentloaded' });
await waitText('receive', 20000);
- await page.evaluate(() => { const b = [...document.querySelectorAll('button')].find((e) => /message/i.test(e.getAttribute('aria-label') || '')); if (b) b.click(); });
- await sleep(800);
- await page.evaluate(() => { const e = [...document.querySelectorAll('.item')].find((n) => (n.querySelector('.chat-name') || {}).textContent === 'Feed'); if (e) e.click(); });
+ await page.evaluate(() => document.querySelector('.app-nav-button[aria-label="Feed"]').click());
const players = () => ytRequests.filter((u) => /youtube-nocookie\.com\/embed/.test(u)).length; // the poster still comes from ytimg, as before
console.log('\n[a video in a post]');