diff options
Diffstat (limited to 'tools/relays-settings-test.js')
| -rw-r--r-- | tools/relays-settings-test.js | 4 |
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(() => { |
