diff options
| author | Adam Soltys <[email protected]> | 2026-10-07 08:40:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-07 08:40:21 -0700 |
| commit | 3aff6e4cc9eb97fc0fa488f1f95001f69f24330a (patch) | |
| tree | 932ed498851f9e2167a1c1419c96d630be0d02e2 /tools/feed-window-dom-test.js | |
| parent | 6d288aeb194d2765282cf9fd72bd1f5fdd747a71 (diff) | |
| parent | 6c51dcf2542314d5fe883f756f0840ef51860d67 (diff) | |
| download | coinosv3-3aff6e4cc9eb97fc0fa488f1f95001f69f24330a.tar.gz coinosv3-3aff6e4cc9eb97fc0fa488f1f95001f69f24330a.zip | |
Merge branch 'worktree-agent-ad1d843e9e394974e'
Diffstat (limited to 'tools/feed-window-dom-test.js')
| -rw-r--r-- | tools/feed-window-dom-test.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/feed-window-dom-test.js b/tools/feed-window-dom-test.js index 7f89785..72ca535 100644 --- a/tools/feed-window-dom-test.js +++ b/tools/feed-window-dom-test.js @@ -87,11 +87,12 @@ 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: 'Prolific Poster', t: Date.now() } })); + localStorage.setItem('btc-wallet-feed:' + k, 'following'); // a wallet with no feed remembered opens 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(); }); + // the Feed is a tab in the bottom nav (it was a row on the chat home) + await page.evaluate(() => [...document.querySelectorAll('.app-nav-button')].find((b) => b.getAttribute('aria-label') === 'Feed')?.click()); await sleep(2500); console.log('\n[a long scroll]'); check('the feed opens on its first posts', (await dom()).first === 'post number 1', JSON.stringify(await dom())); |
