Skip to content

Commit

Permalink
Update to Cypress 8.2.0 (#1034)
Browse files Browse the repository at this point in the history
* Update to Cypress 8.2.0

* remove firefoxGcInterval since it was deprecated

* Update cypress docker image since Cypress no longer supports Firefox 85 and below in Cypress 8

* update all container declarations for github actions

* update all container delcarations for gitlab
  • Loading branch information
Kevin Old committed Aug 6, 2021
1 parent 85f3dfd commit f6b5cf3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ orbs:
executors:
with-chrome-and-firefox:
docker:
- image: "cypress/browsers:node14.15.0-chrome86-ff82"
- image: "cypress/browsers:node14.17.0-chrome88-ff89"
resource_class: medium+

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Commands ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
install:
runs-on: ubuntu-latest
container: cypress/browsers:node14.15.0-chrome86-ff82
container: cypress/browsers:node14.17.0-chrome88-ff89
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
ui-chrome-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container: cypress/browsers:node14.15.0-chrome86-ff82
container: cypress/browsers:node14.17.0-chrome88-ff89
needs: install
strategy:
# when one test fails, DO NOT cancel the other
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
ui-chrome-mobile-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container: cypress/browsers:node14.15.0-chrome86-ff82
container: cypress/browsers:node14.17.0-chrome88-ff89
needs: install
strategy:
# when one test fails, DO NOT cancel the other
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
options: --user 1001
needs: install
strategy:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
options: --user 1001
needs: install
strategy:
Expand Down
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cache:

# Install NPM dependencies and Cypress
install:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: build

script:
Expand All @@ -34,39 +34,39 @@ install:
- yarn build:ci

api-tests:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: test
parallel: 5
script:
- yarn start:ci & npx wait-on http://localhost:3000
- npx cypress run --record --parallel --browser chrome --group "API" --spec "cypress/tests/api/*"

ui-chrome:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: test
parallel: 5
script:
- yarn start:ci & npx wait-on http://localhost:3000
- npx cypress run --record --parallel --browser chrome --group "UI - Chrome" --spec "cypress/tests/ui/*"

ui-chrome-mobile:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: test
parallel: 5
script:
- yarn start:ci & npx wait-on http://localhost:3000
- npx cypress run --record --parallel --browser chrome --group "UI - Chrome - Mobile" --spec "cypress/tests/ui/*" --config "viewportWidth=375,viewportHeight=667"

ui-firefox:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: test
parallel: 5
script:
- yarn start:ci & npx wait-on http://localhost:3000
- npx cypress run --record --parallel --browser firefox --group "UI - Firefox" --spec "cypress/tests/ui/*"

ui-firefox-mobile:
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89
stage: test
parallel: 5
script:
Expand Down
2 changes: 1 addition & 1 deletion bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: cypress/browsers:node14.15.0-chrome86-ff82
image: cypress/browsers:node14.17.0-chrome88-ff89

api-tests: &api-tests
name: "API Tests"
Expand Down
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ batch:
compute-type:
- BUILD_GENERAL1_MEDIUM
image:
- public.ecr.aws/cypress-io/cypress/browsers:node14.15.0-chrome86-ff82
- public.ecr.aws/cypress-io/cypress/browsers:node14.16.0-chrome90-ff88
variables:
CY_GROUP_SPEC:
- "UI - Chrome|chrome|cypress/tests/ui/*"
Expand Down
1 change: 0 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"integrationFolder": "cypress/tests",
"viewportHeight": 1000,
"viewportWidth": 1280,
"firefoxGcInterval": null,
"retries": {
"runMode": 2,
"openMode": 1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"concurrently": "6.2.0",
"cors": "2.8.5",
"cross-env": "7.0.3",
"cypress": "7.7.0",
"cypress": "8.2.0",
"dotenv": "10.0.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-cypress": "2.11.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8339,10 +8339,10 @@ cyclist@^1.0.1:
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=

cypress@7.7.0:
version "7.7.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-7.7.0.tgz#0839ae28e5520536f9667d6c9ae81496b3836e64"
integrity sha512-uYBYXNoI5ym0UxROwhQXWTi8JbUEjpC6l/bzoGZNxoKGsLrC1SDPgIDJMgLX/MeEdPL0UInXLDUWN/rSyZUCjQ==
cypress@8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-8.2.0.tgz#1e4e9f6218324e82a95c1b9cad7f3965ba663d7f"
integrity sha512-jg7S5VxxslwsgEyAkCE9ZCkFADxOUY1bSWScp1cWnga88K0TZgFQ0zdxyG9Mw/4spLGuvkriIZ62am+TR6C04w==
dependencies:
"@cypress/request" "^2.88.5"
"@cypress/xvfb" "^1.2.4"
Expand Down

0 comments on commit f6b5cf3

Please sign in to comment.