aboutsummaryrefslogtreecommitdiffstats
path: root/tools/topic-depth-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/topic-depth-test.js')
-rw-r--r--tools/topic-depth-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/topic-depth-test.js b/tools/topic-depth-test.js
index 9876224..d027e60 100644
--- a/tools/topic-depth-test.js
+++ b/tools/topic-depth-test.js
@@ -4,14 +4,14 @@
// Before: ~5 posts, then "You're all caught up".
//
// Run: bun tools/topic-depth-test.js
-import puppeteer from 'puppeteer-core';
+import puppeteer from './puppeteer.js';
import { buildHtml } from '../build.js';
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
let ok = true;
const check = (n, c, d = '') => { console.log(` ${c ? '✓' : '✗'} ${n}${d ? ' — ' + d : ''}`); if (!c) ok = false; };
const html = await buildHtml({ minify: true, pwa: false });
const server = Bun.serve({ port: 5285, 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: 'read', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] });
const page = await browser.newPage();
try {
await page.setViewport({ width: 390, height: 844 });