diff options
| author | Adam Soltys <[email protected]> | 2026-10-07 12:02:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-07 12:02:51 -0700 |
| commit | 86d9818abfc160dac031bb292abe28d6f28fc624 (patch) | |
| tree | a96983d60fb0f4dcb92a04c7aba50761da05cf9f /tools/upload-progress-test.js | |
| parent | b415b1fb31bd734619e1da3c88ca7e3822151c87 (diff) | |
| download | coinosv3-86d9818abfc160dac031bb292abe28d6f28fc624.tar.gz coinosv3-86d9818abfc160dac031bb292abe28d6f28fc624.zip | |
Browser tests: public relays answered in the page, never reached
A suite run let ~90 throwaway test wallets subscribe and publish on public
relays from one home address, and nos.lol and relay.damus.io banned it.
tools/puppeteer.js wraps puppeteer-core: every socket to a non-local host
gets an in-page stand-in relay (EVENT -> OK, REQ -> EOSE). Tests that read
real content launch with { relays: 'read' } (real reads, publishes answered
in place); feed-live, chat-layout and cordn-ui launch with { relays: 'live' }.
LIVE_RELAYS=read|1|host,... overrides per run.
profile-key-qr: measure the QR again if a repaint swapped it out.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/upload-progress-test.js')
| -rw-r--r-- | tools/upload-progress-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upload-progress-test.js b/tools/upload-progress-test.js index 25bf91c..8d4b24b 100644 --- a/tools/upload-progress-test.js +++ b/tools/upload-progress-test.js @@ -2,7 +2,7 @@ // upload events — fetch() can't), from 0 to 1, on a slow uplink. // // Run: bun tools/upload-progress-test.js -import puppeteer from 'puppeteer-core'; +import puppeteer from './puppeteer.js'; let ok = true; const check = (n, c, d = '') => { console.log(` ${c ? '✓' : '✗'} ${n}${d ? ' — ' + d : ''}`); if (!c) ok = false; }; const js = await Bun.build({ entrypoints: ['src/media-upload.js'], target: 'browser' }).then((b) => b.outputs[0].text()); |
