fix: revert parity harness to puppeteer-core with channel: chrome

The puppeteer import caused protocol timeout issues. Revert to
puppeteer-core but add channel: "chrome" to auto-discover the
Chrome binary installed by 'puppeteer browsers install'.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-03-22 01:31:33 -07:00
co-authored by Claude Opus 4.6
parent b4023ae249
commit 00909c8258
+2 -1
View File
@@ -3,7 +3,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
import { dirname, join, resolve } from "node:path";
import process from "node:process";
import { spawnSync } from "node:child_process";
import puppeteer, { type Page } from "puppeteer";
import puppeteer, { type Page } from "puppeteer-core";
import { MEDIA_VISUAL_STYLE_PROPERTIES, quantizeTimeToFrame } from "./utils/parityContract.js";
type ParityHarnessOptions = {
@@ -270,6 +270,7 @@ async function run(): Promise<void> {
ensureDir(options.artifactsDir);
const browser = await puppeteer.launch({
channel: "chrome",
headless: true,
defaultViewport: {
width: options.width,