mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 17:05:16 +03:00
Remove default failed tests limit (#5955)
This commit is contained in:
parent
d8b4b84c9c
commit
ef017ff6ec
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user