From e3883997eb42cf3380852aacf0646fec26802984 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Tue, 19 Nov 2024 09:05:15 +0000 Subject: [PATCH] fix: pass channel to playwright The 1.49.0 release of playwright has a breaking change due to a new version of headless mode in chromium. The upshot is that playwright now seems to require a channel to be passed in it's config. Without this chrome test runs fail with: ``` browserType.launchPersistentContext: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux/headless_shell ``` --- src/runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runner.js b/src/runner.js index b32e31b9..ef743f73 100644 --- a/src/runner.js +++ b/src/runner.js @@ -99,6 +99,7 @@ export class Runner { /** @type {import('playwright-core').LaunchOptions} */ const pwOptions = { + channel: this.options.browser, headless: !this.options.debug, devtools: this.options.browser === 'chromium' && this.options.debug, args: this.options.extension