chore: follow up to exposing playwright config options (#289)

This commit is contained in:
Pavel Feldman
2025-04-29 08:53:03 -07:00
committed by GitHub
parent 4147e21a3a
commit 69703cc882
4 changed files with 5 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ const install = defineTool({
},
handle: async context => {
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.launchOptions.channel ?? context.config.browser?.launchOptions.browserName ?? 'chrome';
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.launchOptions.browserName ?? 'chrome';
const cli = path.join(require.resolve('playwright/package.json'), '..', 'cli.js');
const child = fork(cli, ['install', channel], {
stdio: 'pipe',