Skip to content

Commit c3a2f7c

Browse files
committed
chore: add MAX_RETRIES to config file
1 parent 3a9d14b commit c3a2f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22

3+
const MAX_RETRIES = 3;
34
const isCI = process.env.CI === "true";
45

56
/** @type { import('@playwright/test').PlaywrightTestConfig} */
@@ -9,8 +10,7 @@ module.exports = {
910
testDir: "./test/e2e",
1011
fullyParallel: false,
1112
forbidOnly: !isCI,
12-
// TODO: can help with flakiness, make sure it works on CI
13-
retries: isCI ? 2 : 0,
13+
retries: isCI ? MAX_RETRIES : 0,
1414
workers: 1,
1515
reporter: isCI ? "github" : "list",
1616
use: {

0 commit comments

Comments
 (0)