Skip to content

Commit

Permalink
Retry e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed May 27, 2021
1 parent 7669db6 commit 412b0b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/e2e-tests/src/config/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ const pageEvents = [];
// The Jest timeout is increased because these tests are a bit slow
jest.setTimeout(PUPPETEER_TIMEOUT || 100000);

// Retry flaky tests at most 2 times in CI.
if ('true' === process.env.CI) {
jest.retryTimes(2);
}

// Set default timeout for individual expect-puppeteer assertions. (Default: 500)
setDefaultOptions({ timeout: EXPECT_PUPPETEER_TIMEOUT || 500 });

Expand Down

0 comments on commit 412b0b7

Please sign in to comment.