Skip to content

Commit 2a89832

Browse files
committed
chore(e2e): add maxFailures to playwright
1 parent d64f197 commit 2a89832

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const config: PlaywrightTestConfig = {
1212
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
1313
timeout: 60000, // Each test is given 60 seconds.
1414
retries: process.env.CI ? 2 : 1, // Retry in CI due to flakiness.
15+
// Limit the number of failures on CI to save resources
16+
maxFailures: process.env.CI ? 10 : undefined,
1517
globalSetup: require.resolve("./utils/globalE2eSetup.ts"),
1618
reporter: "list",
1719
// Put any shared options on the top level.

0 commit comments

Comments
 (0)