Remove default failed tests limit (#5955)

This commit is contained in:
Alexey Zinoviev 2024-06-29 19:53:25 +04:00 committed by GitHub
parent d8b4b84c9c
commit ef017ff6ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,11 @@ import { devices, PlaywrightTestConfig } from '@playwright/test'
import { config as dotenvConfig } from 'dotenv' import { config as dotenvConfig } from 'dotenv'
dotenvConfig() dotenvConfig()
let maxFailures: number | undefined
if (process.env.TESTS_MAX_FAILURES !== undefined) {
maxFailures = parseInt(process.env.TESTS_MAX_FAILURES)
}
const config: PlaywrightTestConfig = { const config: PlaywrightTestConfig = {
projects: [ projects: [
{ {
@ -25,7 +30,7 @@ const config: PlaywrightTestConfig = {
], ],
retries: 1, retries: 1,
timeout: 60000, timeout: 60000,
maxFailures: 5, maxFailures,
expect: { expect: {
timeout: 15000 timeout: 15000
}, },