aboutsummaryrefslogtreecommitdiffstats
path: root/tools/cordn-ui-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cordn-ui-test.js')
-rw-r--r--tools/cordn-ui-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cordn-ui-test.js b/tools/cordn-ui-test.js
index 6948428..8fc707a 100644
--- a/tools/cordn-ui-test.js
+++ b/tools/cordn-ui-test.js
@@ -5,7 +5,7 @@
// cordn-interop-test.js).
//
// Run: bun tools/cordn-ui-test.js [screenshot.png]
-import puppeteer from 'puppeteer-core';
+import puppeteer from './puppeteer.js';
import { generateMnemonic } from '@scure/bip39';
import { wordlist } from '@scure/bip39/wordlists/english';
import { npubEncode } from 'nostr-tools/nip19';
@@ -29,7 +29,7 @@ const aliceRef = /ref=([0-9a-f]{64})/.exec(alice('gen-kp kp' + Date.now().toStri
const html = await buildHtml({ minify: true, pwa: false });
const server = Bun.serve({ port: 5234, fetch: () => new Response(html, { headers: { 'content-type': 'text/html' } }) });
-const browser = await puppeteer.launch({ executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] });
+const browser = await puppeteer.launch({ relays: 'live', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] });
const page = await browser.newPage();
const errs = [];
page.on('pageerror', (e) => { errs.push(e.message); console.log(' [pageerror]', e.message); });