diff options
| author | Adam Soltys <[email protected]> | 2026-09-28 23:25:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-28 23:25:10 -0700 |
| commit | 73ab54a004113b32a9a12661e7e7eb9151999ee3 (patch) | |
| tree | f353736b0ba27259bb2c6eb5c907f4ee56d4e623 /tools | |
| parent | c0e428aff3ff34fec56a434bc1837e49ab9c1a81 (diff) | |
| download | coinosv3-73ab54a004113b32a9a12661e7e7eb9151999ee3.tar.gz coinosv3-73ab54a004113b32a9a12661e7e7eb9151999ee3.zip | |
Someone's timeline gets a labelled feed chip instead of a blank black pill.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Du1qT1wbkYwYK6zkGH79Rp
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/avatar-profile-test.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/avatar-profile-test.js b/tools/avatar-profile-test.js index c91ad26..0f59e10 100644 --- a/tools/avatar-profile-test.js +++ b/tools/avatar-profile-test.js @@ -68,6 +68,14 @@ try { back = await page.evaluate(() => ({ y: window.scrollY, feed: !!document.querySelector('.notes-feed') })); } check('back returns to the feed where the reader was', back.feed && Math.abs(back.y - feedY) < 60, 'scrollY ' + back.y + ' vs ' + feedY); + + // "Their timeline" from the profile: its chip names it (it was a blank pill) + await page.evaluate(() => { const r = [...document.querySelectorAll('.notes-feed .note-avatar')].find((n) => n.closest('[data-key]')?.innerText.includes('Bob Poster')); r.click(); }); + await sleep(1000); + await click('their timeline'); + await sleep(1500); + const chip = await page.evaluate(() => document.querySelector('.feed-chip.on')?.textContent || null); + check('someone’s timeline has a labelled chip', !!chip && /Bob Poster/.test(chip), JSON.stringify(chip)); } finally { await browser.close(); server.stop(true); } console.log(ok ? '\n✅ a face opens its profile at the top' : '\n❌ failed'); process.exit(ok ? 0 : 1); |
