diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 78abf5378..fb4eb4794 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -1,4 +1,6 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps' +// intermittent failing tests +Cypress.env('RETRIES', 2) /* global cy */ diff --git a/package.json b/package.json index 703997ee1..56bed0c01 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "cross-env": "^5.2.0", "cypress": "^3.2.0", "cypress-cucumber-preprocessor": "^1.11.0", + "cypress-plugin-retries": "^1.2.0", "dotenv": "^7.0.0", "faker": "^4.1.0", "graphql-request": "^1.8.2", diff --git a/yarn.lock b/yarn.lock index 1d7745f03..ba9e54364 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1787,6 +1787,11 @@ cypress-cucumber-preprocessor@^1.11.0: glob "^7.1.2" through "^2.3.8" +cypress-plugin-retries@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/cypress-plugin-retries/-/cypress-plugin-retries-1.2.0.tgz#a4e120c1bc417d1be525632e7d38e52a87bc0578" + integrity sha512-seQFI/0j5WCqX7IVN2k0tbd3FLdhbPuSCWdDtdzDmU9oJfUkRUlluV47TYD+qQ/l+fJYkQkpw8csLg8/LohfRg== + cypress@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.2.0.tgz#c2d5befd5077dab6fb52ad70721e0868ac057001"