Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(view): use shared Chrome launch args [C7]

Corey Olson0f1582267943
diff --git a/test/cockpit/chrome-owner-probe.mjs b/test/cockpit/chrome-owner-probe.mjs
index 78faca14..94f6d36c 100644
--- a/test/cockpit/chrome-owner-probe.mjs
+++ b/test/cockpit/chrome-owner-probe.mjs
@@ -1,4 +1,5 @@
/** A stand-in test file for test/cockpit/stable.test.js: it opens Chrome through one launcher, reports ready, and idles [C7]. */
+import { chromeLaunchArgs } from '../chrome-launch-args.js';
import { writeFileSync } from 'node:fs';
import { findChromeExecutable, launchChromeProcess, startChrome as openChrome } from '../chrome-fixture.js';
import { chromeExecutable, openSnapshotChrome } from './fixture.js';
@@ -6,8 +7,7 @@ import { chromeExecutable, openSnapshotChrome } from './fixture.js';
const profile = process.env.PROBE_PROFILE;
if (process.env.PROBE_LAUNCHER === 'startChrome') await openChrome({ profileDirectory: profile });
else if (process.env.PROBE_LAUNCHER === 'launchChromeProcess') {
- launchChromeProcess({ executable: findChromeExecutable(), args: ['--headless=new', '--no-first-run',
- '--use-mock-keychain', '--password-store=basic', '--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank'] });
+ launchChromeProcess({ executable: findChromeExecutable(), args: chromeLaunchArgs(profile) });
} else await openSnapshotChrome(chromeExecutable(), 'about:blank', profile);
writeFileSync(process.env.PROBE_READY, String(process.pid));
setInterval(() => {}, 1000);