Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: mute audio in real-browser test Chrome so test runs stay silent

[._.]/ Adam Eivy5aa67269aca3
diff --git a/client/src/components/CmdKSearch.browser.test.js b/client/src/components/CmdKSearch.browser.test.js
index 2c86902032..17b21a14a4 100644
--- a/client/src/components/CmdKSearch.browser.test.js
+++ b/client/src/components/CmdKSearch.browser.test.js
@@ -60,7 +60,7 @@ describe.skipIf(!chrome)('command palette viewport and keyboard layout', () => {
await server.listen();
origin = server.resolvedUrls.local[0];
browserTemp = await mkdtemp(join(tmpdir(), 'palette-chrome-'));
- browser = await chromium.launch({ executablePath: chrome, headless: true,
+ browser = await chromium.launch({ executablePath: chrome, headless: true, args: ['--mute-audio'],
env: { ...process.env, TMPDIR: browserTemp, TMP: browserTemp, TEMP: browserTemp },
});
}, 60000);
diff --git a/server/services/codeAnimation/export.realBrowser.test.js b/server/services/codeAnimation/export.realBrowser.test.js
index 6c430eff97..3e897bf6c3 100644
--- a/server/services/codeAnimation/export.realBrowser.test.js
+++ b/server/services/codeAnimation/export.realBrowser.test.js
@@ -78,7 +78,7 @@ const meanAbsDiff = (a, b) => {
describe.skipIf(!chrome || !ffmpeg || !ffprobe)('Code Animation frame-exact export with real Chrome and ffmpeg', () => {
beforeAll(async () => {
const profile = join(lazyTempDataRoot('portos-code-animation-export-'), 'chrome-test-profile');
- proc = spawn(chrome, ['--headless=new', '--no-sandbox', '--no-first-run', '--disable-background-networking', '--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank'], { stdio: ['ignore', 'ignore', 'pipe'] });
+ proc = spawn(chrome, ['--headless=new', '--mute-audio', '--no-sandbox', '--no-first-run', '--disable-background-networking', '--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank'], { stdio: ['ignore', 'ignore', 'pipe'] });
try {
const ws = await _waitForTestChrome(proc);
endpoint = new URL(ws).origin.replace('ws:', 'http:');
diff --git a/server/services/htmlComposition/testBrowserCleanup.js b/server/services/htmlComposition/testBrowserCleanup.js
index e4a0cd5eb1..696a6893b5 100644
--- a/server/services/htmlComposition/testBrowserCleanup.js
+++ b/server/services/htmlComposition/testBrowserCleanup.js
@@ -3,9 +3,11 @@ import { killWithEscalation } from '../../lib/killWithEscalation.js';
// These owned browsers render on explicit seek(t), not wall/display time.
// Chromium's display scheduler must not pace a song-length offline capture.
// Background flags match Playwright's standard Chromium launch posture.
+// --mute-audio: compositions embed audio, and an unmuted test browser plays it
+// through the developer's real speakers.
export function _testChromeCaptureArgs(profile) {
return [
- '--headless=new', '--no-sandbox', '--no-first-run', '--disable-background-networking',
+ '--headless=new', '--mute-audio', '--no-sandbox', '--no-first-run', '--disable-background-networking',
'--disable-background-timer-throttling', '--disable-backgrounding-occluded-windows',
'--disable-renderer-backgrounding', '--disable-frame-rate-limit',
'--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank',
diff --git a/server/services/musicVideo/compositionRender.test.js b/server/services/musicVideo/compositionRender.test.js
index 31fa808603..7e1feac437 100644
--- a/server/services/musicVideo/compositionRender.test.js
+++ b/server/services/musicVideo/compositionRender.test.js
@@ -56,7 +56,7 @@ function assertInsideSafeArea(path, width, height) {
describe.skipIf(!chrome || !ffmpeg)('music-video typography overlay with real Chrome and ffmpeg (#8984)', () => {
beforeAll(async () => {
const profile = join(PATHS.data, 'chrome-test-profile');
- proc = spawn(chrome, ['--headless=new', '--no-sandbox', '--no-first-run', '--disable-background-networking', '--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank'], { stdio: ['ignore', 'ignore', 'pipe'] });
+ proc = spawn(chrome, ['--headless=new', '--mute-audio', '--no-sandbox', '--no-first-run', '--disable-background-networking', '--remote-debugging-port=0', `--user-data-dir=${profile}`, 'about:blank'], { stdio: ['ignore', 'ignore', 'pipe'] });
const ws = await new Promise((resolve, reject) => {
const timer = setTimeout(() => reject(new Error('Test Chrome did not start')), 20000);
proc.once('error', reject);