Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: add headless new to flakiness dashboard (#31381)

Max Schmitt8ba4cff10f2b
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index a70c1f5e6d..8cb0347a1a 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -128,7 +128,13 @@ for (const browserName of browserNames) {
metadata: {
platform: process.platform,
docker: !!process.env.INSIDE_DOCKER,
- headful: !!headed,
+ headless: (() => {
+ if (process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW)
+ return 'headless-new';
+ if (headed)
+ return 'headed';
+ return 'headless';
+ })(),
browserName,
channel,
mode,