From c340239003fc3b24d5ba4d85c27bf8a82dafa128 Mon Sep 17 00:00:00 2001 From: Zhi Date: Fri, 13 Mar 2026 11:01:32 +0000 Subject: [PATCH] configure playwright to use remote chrome debugging --- playwright.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 350b104..655841e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -2,6 +2,7 @@ import { defineConfig, devices } from '@playwright/test'; const baseURL = process.env.BASE_URL || 'http://127.0.0.1:3000'; const webServerURL = process.env.WEB_SERVER_URL || baseURL; +const chromeDebuggingPort = process.env.CHROME_DEBUGGING_PORT || '9222'; export default defineConfig({ testDir: './tests', @@ -13,11 +14,17 @@ export default defineConfig({ use: { baseURL, trace: 'on-first-retry', + launchOptions: { + args: [`--remote-debugging-port=${chromeDebuggingPort}`], + }, }, projects: [ { name: 'chromium', - use: { ...devices['Desktop Chrome'] }, + use: { + ...devices['Desktop Chrome'], + channel: 'chrome', + }, }, ], webServer: {