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/ark | |
| 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/ark')
| -rw-r--r-- | tools/ark/cooperative-exit-ui-test.js | 2 | ||||
| -rw-r--r-- | tools/ark/gift-shot.js | 2 | ||||
| -rw-r--r-- | tools/ark/offboard-minimum-test.js | 2 | ||||
| -rw-r--r-- | tools/ark/renew-confirm-ui-test.js | 2 | ||||
| -rw-r--r-- | tools/ark/ui-shots.js | 2 | ||||
| -rw-r--r-- | tools/ark/ui-test.js | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tools/ark/cooperative-exit-ui-test.js b/tools/ark/cooperative-exit-ui-test.js index d8f990d..d8fa0d8 100644 --- a/tools/ark/cooperative-exit-ui-test.js +++ b/tools/ark/cooperative-exit-ui-test.js @@ -1,7 +1,7 @@ // Real app navigation/forms with a local Ark manager stub; never transfers funds. // Run: bun tools/ark/cooperative-exit-ui-test.js import assert from 'node:assert/strict'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; diff --git a/tools/ark/gift-shot.js b/tools/ark/gift-shot.js index aac6809..f8c96a8 100644 --- a/tools/ark/gift-shot.js +++ b/tools/ark/gift-shot.js @@ -2,7 +2,7 @@ // wallet, open its link in the same browser (wallet 1 still in session), // capture the "choose where to receive" screen. import { spawn, execSync } from 'node:child_process'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; diff --git a/tools/ark/offboard-minimum-test.js b/tools/ark/offboard-minimum-test.js index 9593089..94d166c 100644 --- a/tools/ark/offboard-minimum-test.js +++ b/tools/ark/offboard-minimum-test.js @@ -3,7 +3,7 @@ // note for when the ASP actually failed to co-operate. Local manager stub. // Run: bun tools/ark/offboard-minimum-test.js import assert from 'node:assert/strict'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; diff --git a/tools/ark/renew-confirm-ui-test.js b/tools/ark/renew-confirm-ui-test.js index e5a68c8..698c424 100644 --- a/tools/ark/renew-confirm-ui-test.js +++ b/tools/ark/renew-confirm-ui-test.js @@ -5,7 +5,7 @@ // 2026-10-03 report; nothing is sent anywhere. // Run: bun tools/ark/renew-confirm-ui-test.js import assert from 'node:assert/strict'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; diff --git a/tools/ark/ui-shots.js b/tools/ark/ui-shots.js index 5331ab8..cda336a 100644 --- a/tools/ark/ui-shots.js +++ b/tools/ark/ui-shots.js @@ -1,7 +1,7 @@ // Screenshot run: import a wallet, receive over Ark, show the balance card + // Ark settings card. Writes PNGs to /tmp/ark-ui-*.png. import { spawn, execSync } from 'node:child_process'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; diff --git a/tools/ark/ui-test.js b/tools/ark/ui-test.js index e4e2e5a..75d3fc5 100644 --- a/tools/ark/ui-test.js +++ b/tools/ark/ui-test.js @@ -9,7 +9,7 @@ // Usage: bun tools/ark/ui-test.js (ark regtest stack up) import { execSync } from 'node:child_process'; -import puppeteer from 'puppeteer-core'; +import puppeteer from '../puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; import { ALICE, aliceReady, aliceBalance } from './alice.js'; |
