aboutsummaryrefslogtreecommitdiffstats
path: root/tools/profile-draft-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/profile-draft-test.js')
-rw-r--r--tools/profile-draft-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/profile-draft-test.js b/tools/profile-draft-test.js
index 437dd61..9880d68 100644
--- a/tools/profile-draft-test.js
+++ b/tools/profile-draft-test.js
@@ -2,7 +2,7 @@
// without adding a browser-history entry for each keystroke.
// Run: bun tools/profile-draft-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 { seedPubkey } from '../src/nostr.js';
@@ -11,7 +11,7 @@ import { buildHtml } from '../build.js';
const html = await buildHtml({ minify: true, pwa: false });
const server = Bun.serve({ port: 0, fetch: () => new Response(html, { headers: { 'content-type': 'text/html' } }) });
const origin = `http://localhost:${server.port}`;
-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'] });
const page = await browser.newPage();
const errors = [];
page.on('pageerror', e => errors.push(e.message));