aboutsummaryrefslogtreecommitdiffstats
path: root/tools/relays-settings-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/relays-settings-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/relays-settings-test.js')
-rw-r--r--tools/relays-settings-test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/relays-settings-test.js b/tools/relays-settings-test.js
index 7045b21..df89388 100644
--- a/tools/relays-settings-test.js
+++ b/tools/relays-settings-test.js
@@ -94,7 +94,9 @@ try {
check('...and the DM inbox list', JSON.stringify(await dms()) === JSON.stringify(['relay.coinos.io', 'inbox.example.com']), JSON.stringify(await dms()));
console.log('\n[editing, then saving]');
- await click('save'); await sleep(400);
+ // (a new identity has already put out its DM inbox list at boot; the card's
+ // Save is .relays-save — the page has other Save buttons now)
+ await page.evaluate(() => { window.__published = []; document.querySelector('.relays-save').click(); }); await sleep(400);
check('saving with nothing changed publishes nothing', !(await page.evaluate(() => window.__published)).some((e) => e.kind === 10002 || e.kind === 10050));
// nos.lol becomes read+write; relay.example.com goes; a bare host is added
await page.evaluate(() => {