Allow 2 retries playwright (#384)

This commit is contained in:
Will Chen
2025-06-10 15:00:06 -07:00
committed by GitHub
parent d7f7f15afd
commit b86738f3ab

View File

@@ -3,7 +3,7 @@ import { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = { const config: PlaywrightTestConfig = {
testDir: "./e2e-tests", testDir: "./e2e-tests",
workers: 1, workers: 1,
retries: process.env.CI ? 1 : 0, retries: process.env.CI ? 2 : 0,
// maxFailures: 1, // maxFailures: 1,
timeout: process.env.CI ? 180_000 : 30_000, timeout: process.env.CI ? 180_000 : 30_000,
// Use a custom snapshot path template because Playwright's default // Use a custom snapshot path template because Playwright's default