Skip to content

Commit

Permalink
👷 chore(metamask): Retry failed tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Nov 22, 2023
1 parent 96a413e commit 8e3da5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wallets/metamask/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default defineConfig({
// Opt out of parallel tests on CI since it supports only 1 worker.
workers: process.env.CI ? 1 : undefined,

// Retry failed tests on CI.
retries: process.env.CI ? 3 : 0,

// Concise 'dot' for CI, default 'html' when running locally.
// See https://playwright.dev/docs/test-reporters.
reporter: process.env.CI
Expand All @@ -27,7 +30,7 @@ export default defineConfig({
use: {
// Collect all traces on CI, and only traces for failed tests when running locally.
// See https://playwright.dev/docs/trace-viewer.
trace: process.env.CI ? 'on' : 'retain-on-failure'
trace: process.env.CI ? 'on-first-retry' : 'retain-on-failure'
},

// Configure projects for major browsers.
Expand Down

0 comments on commit 8e3da5c

Please sign in to comment.