aboutsummaryrefslogtreecommitdiffstats
path: root/tools/profile-open-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:34:13 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:34:13 -0700
commit6d288aeb194d2765282cf9fd72bd1f5fdd747a71 (patch)
tree9ea340ae990af7e675d0871a80d4d3cdd9b0ac4a /tools/profile-open-test.js
parenta6bae186071e7e07136a37f63864d0bf578edd16 (diff)
parentd04f10db5e3c007db2cd8a5f9e12eff55bc1c653 (diff)
downloadcoinosv3-6d288aeb194d2765282cf9fd72bd1f5fdd747a71.tar.gz
coinosv3-6d288aeb194d2765282cf9fd72bd1f5fdd747a71.zip
Merge branch 'worktree-agent-ab051145d709af327'
Diffstat (limited to 'tools/profile-open-test.js')
-rw-r--r--tools/profile-open-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/profile-open-test.js b/tools/profile-open-test.js
index e2fcb3a..aa0c943 100644
--- a/tools/profile-open-test.js
+++ b/tools/profile-open-test.js
@@ -73,12 +73,12 @@ try {
await page.evaluate(([k, pks, ns]) => {
localStorage.setItem(k + ':follows', JSON.stringify({ tags: pks.map((p) => ['p', p]), c: '', at: Math.floor(Date.now() / 1000) }));
localStorage.setItem(k + ':feedNotes', JSON.stringify(ns));
+ localStorage.setItem('btc-wallet-feed:' + k, 'following'); // this wallet's last feed (new ones open on Popular)
}, [base, authors, notes.map((e) => ({ id: e.id, pubkey: e.pubkey, kind: 1, created_at: e.created_at, content: e.content.slice(0, 200), tags: [] }))]);
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(1000);
- await page.evaluate(() => { const e = [...document.querySelectorAll('.item')].find((n) => /feed/i.test(n.textContent)); if (e) e.click(); });
+ // the Feed is a button in the bottom nav
+ await page.evaluate(() => { const b = [...document.querySelectorAll('.app-nav-button')].find((e) => /^feed$/i.test(e.getAttribute('aria-label') || '')); if (b) b.click(); });
// let the feed settle completely — this test is about what happens AFTER
await sleep(12000);