aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feed-list-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:39:07 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:39:07 -0700
commit6c51dcf2542314d5fe883f756f0840ef51860d67 (patch)
tree88f66bae1e8015219c4d31614ba09454af30cc1e /tools/feed-list-test.js
parent8dfc629d129c6c1a8a3ed38a935e659eee9f67c7 (diff)
downloadcoinosv3-6c51dcf2542314d5fe883f756f0840ef51860d67.tar.gz
coinosv3-6c51dcf2542314d5fe883f756f0840ef51860d67.zip
Feed tests (port 5298 group): bottom-nav Feed, Following seeded, today's prepend and editor
- feed-list, markdown-note: open the Feed tab, on Following; feed-list opens the editor from the feed's ⋯ menu - feed-stability: the warm-up query asks kinds 1+1068 (polls); a live post with the header on screen goes in above the first post, held still (it no longer waits); the per-frame drift check uses a second post once the header is away - relays-settings: a new identity puts out its DM inbox list at boot, and the page has other Save buttons; the no-change save clears the log and clicks the card's own Save Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/feed-list-test.js')
-rw-r--r--tools/feed-list-test.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/feed-list-test.js b/tools/feed-list-test.js
index bd88846..641d43d 100644
--- a/tools/feed-list-test.js
+++ b/tools/feed-list-test.js
@@ -71,9 +71,8 @@ const type = async (sel, text) => {
await page.click(sel); await page.type(sel, text);
};
const openFeed = async () => {
- 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(1200);
};
@@ -97,6 +96,7 @@ try {
await page.evaluate(([k, pk, ns]) => {
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('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);
@@ -149,7 +149,9 @@ try {
const d2 = pub2 && (pub2.tags.find((x) => x[0] === 'd') || [])[1];
console.log('\n[unticking removes the list from the relays; the feed stays]');
- await page.evaluate(() => [...document.querySelectorAll('button')].find((b) => /edit feed/i.test(b.getAttribute('aria-label') || '')).click()); await sleep(400);
+ // the editor lives in the feed's ⋯ menu now
+ await page.click('[aria-label="Feed options"]'); await sleep(300);
+ await page.evaluate(() => [...document.querySelectorAll('.msg-sheet button')].find((b) => /edit feed/i.test(b.textContent)).click()); await sleep(400);
check('the editor has the list toggle on', await page.evaluate(() => { const c = document.querySelector('.feed-list-toggle'); return c && c.checked; }));
await page.evaluate(() => { window.__published = []; document.querySelector('.feed-list-toggle').click(); });
await click('save'); await sleep(1500);