Skip to content

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

test: default to one worker on CI for tests/playwright-test (#11618)

Dmitry Gozmana8a81eba1109
diff --git a/tests/playwright-test/playwright-test.config.ts b/tests/playwright-test/playwright-test.config.ts
index 6056acdd01..317b286a81 100644
--- a/tests/playwright-test/playwright-test.config.ts
+++ b/tests/playwright-test/playwright-test.config.ts
@@ -21,6 +21,7 @@ const config: Config = {
testIgnore: ['assets/**', 'stable-test-runner/**'],
timeout: 30000,
forbidOnly: !!process.env.CI,
+ workers: process.env.CI ? 1 : undefined,
preserveOutput: process.env.CI ? 'failures-only' : 'always',
projects: process.env.PLAYWRIGHT_DOCKER ? [
{ name: 'visual tests', testMatch: ['*.visual.ts'] },