diff options
| author | Adam Soltys <[email protected]> | 2026-10-07 08:34:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-07 08:34:45 -0700 |
| commit | 8dfc629d129c6c1a8a3ed38a935e659eee9f67c7 (patch) | |
| tree | e85c955e7014e1cf4b22166077d41e3d5c2bc4bd /tools/poll-test.js | |
| parent | 1d6786265f4d86b2260b30060df473a51774fb72 (diff) | |
| download | coinosv3-8dfc629d129c6c1a8a3ed38a935e659eee9f67c7.tar.gz coinosv3-8dfc629d129c6c1a8a3ed38a935e659eee9f67c7.zip | |
Feed tests: open the Feed from the bottom nav, on Following
The feed left the chat home for a bottom-nav tab, and a wallet with no
feed remembered opens on Popular, so these tests click the Feed tab and
seed Following as the wallet's last feed. Also brought up to date:
- feed-live: the pill lands on the oldest new post; arrivals at the top go
in above the first post (held still), not behind the pill; scroll up a
screen at a time (one jump lands before the windowed rows are back)
- feed-custom: only the feeds' chips are counted (not All/Images/…); the
follows box is not the first checkbox any more; the last feed is
remembered across a reload; the pack shows in the feed's editor (the chat
home no longer lists the feed)
- feed-follow: Feed tab + Following chip instead of the messages-home row;
the feed opens at ten posts (tall ones, so a page doesn't fill the screen)
- moderation: nos.lol is a local stand-in (a relay that won't connect held
the mute list back past the checks)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/poll-test.js')
| -rw-r--r-- | tools/poll-test.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/poll-test.js b/tools/poll-test.js index b88a4db..bc1715e 100644 --- a/tools/poll-test.js +++ b/tools/poll-test.js @@ -52,11 +52,12 @@ try { const quoting = { id: 'd'.repeat(64), pubkey: q, kind: 1, created_at: now, content: 'vote on this nostr:' + ref, tags: [] }; localStorage.setItem(k + ':follows', JSON.stringify({ tags: [['p', poll.pubkey], ['p', q]], c: '', at: now })); localStorage.setItem(k + ':feedNotes', JSON.stringify([quoting, poll])); + localStorage.setItem('btc-wallet-feed:' + k, 'following'); // a wallet with no feed remembered opens on Popular localStorage.setItem(k + ':profiles', JSON.stringify({ [poll.pubkey]: { name: 'Poll Author', t: Date.now() }, [q]: { name: 'Quoter', t: Date.now() } })); }, [base, poll, Q, neventOf(poll.id, poll.pubkey)]); await page.reload({ waitUntil: 'domcontentloaded' }); await waitText('receive', 20000); - await page.evaluate(() => document.querySelector('.app-bottom-nav .app-nav-button').click()); + await page.evaluate(() => [...document.querySelectorAll('.app-nav-button')].find((b) => b.getAttribute('aria-label') === 'Feed').click()); await waitFor(() => document.querySelectorAll('.notes-feed .poll').length >= 2, 20000); const feedPoll = await page.evaluate(() => { |
