Skip to content

Commit da7c657

Browse files
committed
test(mcp): launch the createConnection browser without the chromium sandbox
1 parent 41d53ff commit da7c657

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/mcp/library.spec.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ test('createConnection closes the browser it launched when the backend is dispos
7474
const userDataDir = testInfo.outputPath('user-data-dir');
7575

7676
const client = await connectClient(await createConnection({
77-
browser: { browserName, userDataDir, launchOptions: { channel, headless: mcpHeadless } },
77+
// Match what BrowserType.launch does by default. Resolving this config
78+
// turns the sandbox on for a chromium without a channel, and the bundled
79+
// build cannot sandbox on a linux runner.
80+
browser: { browserName, userDataDir, launchOptions: { channel, chromiumSandbox: false, headless: mcpHeadless } },
7881
outputDir: testInfo.outputPath('output'),
7982
}));
8083

0 commit comments

Comments
 (0)