diff options
Diffstat (limited to 'tools/profile-actions-test.js')
| -rw-r--r-- | tools/profile-actions-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/profile-actions-test.js b/tools/profile-actions-test.js index e44c037..1886058 100644 --- a/tools/profile-actions-test.js +++ b/tools/profile-actions-test.js @@ -1,7 +1,7 @@ // Send clears on leaving; profile Pay starts fresh; messaging Back pops history. // Run: bun tools/profile-actions-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'; import { generateSecretKey, getPublicKey } from 'nostr-tools/pure'; @@ -26,7 +26,7 @@ const server = Bun.serve({ port: 0, fetch(req) { return new URL(req.url).pathname === '/' || new URL(req.url).pathname.startsWith('/npub1') ? new Response(html, { headers: { 'Content-Type': 'text/html' } }) : new Response(null, { status: 404 }); } }); -const browser = await puppeteer.launch({ executablePath: '/usr/bin/google-chrome', headless: true, args: ['--no-sandbox'] }); +const browser = await puppeteer.launch({ relays: 'read', executablePath: '/usr/bin/google-chrome', headless: true, args: ['--no-sandbox'] }); try { const page = await browser.newPage(), errors = []; page.on('pageerror', (e) => errors.push(e.message)); |
