Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit d51957b

Browse files
authored
Merge pull request #4800 from withspectrum/test-retries
Use cypress retries
2 parents 80fad2c + cead534 commit d51957b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

cypress/support/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
// Import commands.js using ES2015 syntax:
1717
import './commands';
18+
require('cypress-plugin-retries');
1819

1920
before(() => {
2021
cy.resetdb();

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"cheerio": "^1.0.0-rc.2",
2323
"cpy-cli": "^2.0.0",
2424
"cross-env": "^5.2.0",
25+
"cypress-plugin-retries": "^1.2.0",
2526
"eslint": "^4.1.1",
2627
"eslint-config-react-app": "^2.1.0",
2728
"eslint-plugin-flowtype": "^2.50.3",
@@ -264,7 +265,7 @@
264265
"jest": "cross-env NODE_PATH=./ jest",
265266
"test": "npm run jest -- --runInBand --watch",
266267
"test:ci": "npm run jest -- --forceExit --outputFile test-results.json --json --maxWorkers=2",
267-
"test:e2e": "cypress run",
268+
"test:e2e": "CYPRESS_RETRIES=2 cypress run",
268269
"prestart:api:test": "node -e \"require('./shared/testing/setup.js')().then(() => process.exit())\"",
269270
"start:api:test": "TEST_DB=true FORCE_DEV=true DEBUG=api*,shared* forever build-api/main.js",
270271
"cypress:open": "cypress open",
@@ -292,4 +293,4 @@
292293
]
293294
},
294295
"pre-commit": "lint:staged"
295-
}
296+
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4762,6 +4762,11 @@ [email protected]:
47624762
resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
47634763
integrity sha1-IegLK+hYD5i0aPN5QwZisEbDStI=
47644764

4765+
cypress-plugin-retries@^1.2.0:
4766+
version "1.2.0"
4767+
resolved "https://registry.yarnpkg.com/cypress-plugin-retries/-/cypress-plugin-retries-1.2.0.tgz#a4e120c1bc417d1be525632e7d38e52a87bc0578"
4768+
integrity sha512-seQFI/0j5WCqX7IVN2k0tbd3FLdhbPuSCWdDtdzDmU9oJfUkRUlluV47TYD+qQ/l+fJYkQkpw8csLg8/LohfRg==
4769+
47654770
47664771
version "3.1.5"
47674772
resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.1.5.tgz#5227b2ce9306c47236d29e703bad9055d7218042"

0 commit comments

Comments
 (0)