From 3eb8c628c2d5d4c8d564f49c80fd38c8443effa9 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Thu, 8 Oct 2026 18:03:58 +0200 Subject: [PATCH] test(browser): run headed instances on the shell CI installs Playwright with --only-shell, so a `headless: false` instance must launch the chromium-headless-shell channel --- test/browser/specs/instance-concurrency.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/browser/specs/instance-concurrency.test.ts b/test/browser/specs/instance-concurrency.test.ts index e54415ca0..df3f429b4 100644 --- a/test/browser/specs/instance-concurrency.test.ts +++ b/test/browser/specs/instance-concurrency.test.ts @@ -442,8 +442,9 @@ test.runIf(provider.name === 'playwright' && browser === 'chromium')( headless: false, ui: false, instances: createInstances(), - // the window is hidden by chromium itself, so the pool sees a headed instance - provider: playwright({ launchOptions: { args: ['--headless=new'] } }), + // the headless shell has no window, so the pool sees a headed instance + // while the test runs on the browser CI installs with `--only-shell` + provider: playwright({ launchOptions: { channel: 'chromium-headless-shell' } }), }, reporters: [ 'default', -- 2.51.2