Skip to content

Commit 99041cc

Browse files
wardpeetsidharthachatterjee
authored andcommitted
fix: upgrade chrome to fix e2e-test flake (#17503)
1 parent 07bebc2 commit 99041cc

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ executors:
1313
aliases:
1414
e2e-executor: &e2e-executor
1515
docker:
16-
- image: cypress/browsers:chrome69
16+
- image: cypress/browsers:node10.16.0-chrome76
1717

1818
restore_cache: &restore_cache
1919
restore_cache:

e2e-tests/gatsby-image/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
"build": "gatsby build",
2626
"develop": "gatsby develop",
2727
"format": "prettier --write '**/*.js'",
28-
"test": "CYPRESS_SUPPORT=y npm run build && npm run start-server-and-test",
28+
"test": "cross-env CYPRESS_SUPPORT=y npm run build && npm run start-server-and-test",
2929
"start-server-and-test": "start-server-and-test serve http://localhost:9000 cy:run",
3030
"serve": "gatsby serve",
3131
"cy:open": "cypress open",
3232
"cy:run": "(is-ci && cypress run --browser chrome --record) || cypress run --browser chrome"
3333
},
3434
"devDependencies": {
35+
"cross-env": "^5.2.0",
3536
"gatsby-cypress": "^0.1.7",
3637
"is-ci": "^2.0.0",
3738
"prettier": "^1.14.3",

e2e-tests/path-prefix/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525
"postbuild": "cp -r public/. assets/blog",
2626
"develop": "gatsby develop",
2727
"format": "prettier --write '**/*.js'",
28-
"test": "CYPRESS_SUPPORT=y npm run build && npm run start-server-and-test",
28+
"test": "cross-env CYPRESS_SUPPORT=y npm run build && npm run start-server-and-test",
2929
"start-server-and-test": "start-server-and-test serve \"http://localhost:9000/blog/|http://localhost:9001/blog/\" cy:run",
3030
"serve": "gatsby serve --prefix-paths & npm run serve:assets",
3131
"serve:assets": "node scripts/serve.js",
3232
"cy:open": "cypress open",
3333
"cy:run": "(is-ci && cypress run --browser chrome --record) || cypress run --browser chrome"
3434
},
3535
"devDependencies": {
36+
"cross-env": "^5.2.0",
3637
"gatsby-cypress": "^0.1.7",
3738
"is-ci": "^2.0.0",
3839
"prettier": "^1.14.3",

e2e-tests/production-runtime/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
],
2121
"license": "MIT",
2222
"scripts": {
23-
"build": "CYPRESS_SUPPORT=y gatsby build",
24-
"build:offline": "TEST_PLUGIN_OFFLINE=y CYPRESS_SUPPORT=y gatsby build",
23+
"build": "cross-env CYPRESS_SUPPORT=y gatsby build",
24+
"build:offline": "cross-env TEST_PLUGIN_OFFLINE=y CYPRESS_SUPPORT=y gatsby build",
2525
"develop": "gatsby develop",
2626
"format": "prettier --write '**/*.js'",
2727
"serve": "gatsby serve",
@@ -36,9 +36,10 @@
3636
"cy:run": "npm run cy:run:normal && npm run cy:run:slow",
3737
"cy:run:offline": "npm run cy:run:normal -- --env TEST_PLUGIN_OFFLINE=y && npm run cy:run:slow -- --env TEST_PLUGIN_OFFLINE=y",
3838
"cy:run:normal": "(is-ci && cypress run --browser chrome --record) || cypress run --browser chrome",
39-
"cy:run:slow": "CYPRESS_CONNECTION_TYPE=slow cypress run --browser chrome --config testFiles=prefetching.js"
39+
"cy:run:slow": "cross-env CYPRESS_CONNECTION_TYPE=slow cypress run --browser chrome --config testFiles=prefetching.js"
4040
},
4141
"devDependencies": {
42+
"cross-env": "^5.2.0",
4243
"fs-extra": "^7.0.1",
4344
"is-ci": "^2.0.0",
4445
"prettier": "^1.14.3",

0 commit comments

Comments
 (0)