Skip to content

Commit

Permalink
feat(playwright): adjust retries and maxFailures for CI environments
Browse files Browse the repository at this point in the history
  • Loading branch information
nelitow committed Dec 9, 2024
1 parent d0d8feb commit 2394951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/app/playwright.crx-lock.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { join } from 'path';
import { defineConfig } from '@playwright/test';
import { playwrightConfig } from './playwright.config';

const IS_CI = process.env.CI;

export default defineConfig({
...playwrightConfig,
retries: IS_CI ? 1 : 0,
maxFailures: IS_CI ? 2 : undefined,
testMatch: join(__dirname, './playwright/crx/lock.test.ts'),
testIgnore: undefined,
});

0 comments on commit 2394951

Please sign in to comment.