Skip to content

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

devops: use dafault worker count on ci (#40217)

Yury Semikhatskydd383c6402a2
diff --git a/tests/bidi/playwright.config.ts b/tests/bidi/playwright.config.ts
index 2c8057c4a7..4cce79ad46 100644
--- a/tests/bidi/playwright.config.ts
+++ b/tests/bidi/playwright.config.ts
@@ -65,7 +65,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
maxFailures: 0,
timeout: 15 * 1000,
globalTimeout: 90 * 60 * 1000,
- workers: process.env.CI ? 4 : undefined,
+ workers: undefined,
fullyParallel: !process.env.CI,
forbidOnly: !!process.env.CI,
retries: 0, // No retries even on CI for now.
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index bc84fad61a..e20a796a33 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -95,7 +95,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
maxFailures: 200,
timeout: video ? 60000 : 30000,
globalTimeout: 5400000,
- workers: process.env.CI ? 4 : undefined,
+ workers: undefined,
fullyParallel: !process.env.CI,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
diff --git a/tests/mcp/playwright.config.ts b/tests/mcp/playwright.config.ts
index bbc2671891..86d4cd99a5 100644
--- a/tests/mcp/playwright.config.ts
+++ b/tests/mcp/playwright.config.ts
@@ -51,7 +51,7 @@ export default defineConfig<TestOptions>({
testDir: rootTestDir,
fullyParallel: true,
forbidOnly: !!process.env.CI,
- workers: process.env.CI ? 2 : undefined,
+ workers: undefined,
reporter: reporters(),
tag: process.env.PW_TAG,
projects: [
diff --git a/tests/playwright-test/playwright.config.ts b/tests/playwright-test/playwright.config.ts
index 26bc64fbf7..71531ffbd2 100644
--- a/tests/playwright-test/playwright.config.ts
+++ b/tests/playwright-test/playwright.config.ts
@@ -34,7 +34,7 @@ const reporters = () => {
export default defineConfig({
timeout: 30000,
forbidOnly: !!process.env.CI,
- workers: process.env.CI ? 3 : undefined,
+ workers: undefined,
snapshotPathTemplate: '__screenshots__/{testFilePath}/{arg}{ext}',
projects: [
{