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

This commit is contained in:
Dmitry Gozman 2022-01-25 10:11:44 -08:00 committed by GitHub
parent a13f71d328
commit a8a81eba11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'] },