Skip to content

Commit 9b4468b

Browse files
committed
Fail on flaky playwright tests
1 parent 7fda491 commit 9b4468b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const config: PlaywrightTestConfig = defineConfig({
1717
retries: process.env.CI ? 2 : 0,
1818
forbidOnly: !!process.env.CI,
1919
snapshotDir: 'tests/e2e/snapshots',
20+
failOnFlakyTests: !!process.env.CI,
2021
// put all snapshots in one directory
2122
// https://playwright.dev/docs/api/class-testconfig#test-config-snapshot-path-template
2223
snapshotPathTemplate: '{snapshotDir}/{arg}-{projectName}-{platform}{ext}',

0 commit comments

Comments
 (0)