Skip to content

chore: Upgrade Cypress to v9 #35730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c48042b
upgrade cypress
LekoArts May 24, 2022
e74bb0b
delete gatsby-image
LekoArts May 24, 2022
0597ebb
Merge branch 'master' into upgrade-cypress
LekoArts May 30, 2022
2e86f87
update docker image
LekoArts May 30, 2022
5a5294f
force click
LekoArts May 31, 2022
256fd49
Merge branch 'master' into upgrade-cypress
LekoArts May 31, 2022
d507b04
fix dev error
LekoArts May 31, 2022
ab5761f
Merge branch 'master' into upgrade-cypress
LekoArts Jun 1, 2022
e45d2b5
lol - fix compilation hash
LekoArts Jun 2, 2022
e5d3a84
increase wait in new-file
LekoArts Jun 2, 2022
8877455
fix global styles
LekoArts Jun 2, 2022
0cfefdb
fix resource loading
LekoArts Jun 2, 2022
e7627b3
Merge branch 'master' into upgrade-cypress
LekoArts Jun 3, 2022
6fe9872
Merge branch 'master' into upgrade-cypress
LekoArts Jun 9, 2022
b8596ef
update react version in tests
LekoArts Jun 9, 2022
4f044ae
fix 1-production
LekoArts Jun 9, 2022
56d8cfa
fix some more tests
LekoArts Jun 9, 2022
72ebe63
more "fixes"
LekoArts Jun 9, 2022
c52286e
remove only
LekoArts Jun 9, 2022
66f9e70
add new error code
LekoArts Jun 13, 2022
8362ffa
Merge branch 'master' into upgrade-cypress
LekoArts Jun 13, 2022
62ab27e
fix deprecated before:browser:launch hook
LekoArts Jun 13, 2022
a20050b
add retries
LekoArts Jun 13, 2022
8078d0e
use 2g
LekoArts Jun 14, 2022
0f13048
remove "slow" testing
LekoArts Jun 15, 2022
a79491b
fix
LekoArts Jun 15, 2022
54aa11f
typo
LekoArts Jun 15, 2022
bf0c169
forgot to remove one script
LekoArts Jun 15, 2022
a9a2369
Merge branch 'master' into upgrade-cypress
LekoArts Jun 15, 2022
4814516
add retries
LekoArts Jun 21, 2022
01ca68f
Merge branch 'master' into upgrade-cypress
LekoArts Jun 21, 2022
9971c24
maybe fix remote-file?
LekoArts Jun 21, 2022
95e1d2c
Merge branch 'master' into upgrade-cypress
LekoArts Jun 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aliases:

e2e-executor: &e2e-executor
docker:
- image: cypress/browsers:node14.15.0-chrome86-ff82
- image: cypress/browsers:node14.15.0-chrome96-ff94
environment:
<<: *e2e-executor-env

Expand Down Expand Up @@ -392,7 +392,7 @@ jobs:
steps:
- e2e-test:
test_path: e2e-tests/development-runtime
react_version: "^18.0.0"
react_version: "^18.2.0"

e2e_tests_production_runtime:
<<: *e2e_tests_production_runtime_alias
Expand All @@ -403,7 +403,7 @@ jobs:
- e2e-test:
test_path: e2e-tests/production-runtime
test_command: CYPRESS_PROJECT_ID=5k8zbj CYPRESS_RECORD_KEY=ec36ff6b-3db9-48a9-8f7b-2faf301ab800 yarn test && CYPRESS_PROJECT_ID=yvdct2 CYPRESS_RECORD_KEY=2a4f4f31-0dfb-4a56-80e0-9ed42a1131a4 yarn test:offline
react_version: "^18.0.0"
react_version: "^18.2.0"

themes_e2e_tests_development_runtime:
<<: *e2e-executor
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"devDependencies": {
"@cypress/snapshot": "^2.1.7",
"cross-env": "^7.0.3",
"cypress": "^9.5.4",
"cypress": "^9.7.0",
"cypress-image-snapshot": "^4.0.1",
"gatsby-cypress": "latest",
"gatsby-cypress": "next",
"prettier": "^2.6.2",
"srcset": "^5.0.0",
"start-server-and-test": "^1.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe(`testing error overlay and ability to automatically recover from runtim
.find(
`[data-gatsby-overlay="accordion"] [data-gatsby-overlay="body__error-message"]`
)
.should(`contain.text`, `Cannot read property 'b' of undefined`)
.should(`contain.text`, `Cannot read properties of undefined (reading 'b')`)
cy.getFastRefreshOverlay().find(`[data-gatsby-overlay="body"] pre`)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe(`client-side navigation to the new page`, () => {
before(() => {
cy.visit(`/`).waitForRouteChange()
cy.exec(`npm run update -- --file src/pages/new-page.js`)
cy.wait(1000)
cy.wait(5000)
})

it(`can navigate to newly created page using link`, () => {
Expand Down
6 changes: 1 addition & 5 deletions e2e-tests/development-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@playwright/test": "^1.22.0",
"@testing-library/cypress": "^7.0.0",
"cross-env": "^5.2.0",
"cypress": "6.1.0",
"cypress": "^9.7.0",
"cypress-image-snapshot": "^4.0.1",
"fs-extra": "^7.0.1",
"gatsby-core-utils": "next",
Expand All @@ -78,9 +78,5 @@
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby"
},
"resolutions": {
"cypress": "6.1.0",
"graphql-config": "3.3.0"
}
}
11 changes: 0 additions & 11 deletions e2e-tests/gatsby-image/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions e2e-tests/gatsby-image/LICENSE

This file was deleted.

30 changes: 0 additions & 30 deletions e2e-tests/gatsby-image/README.md

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions e2e-tests/gatsby-image/cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions e2e-tests/gatsby-image/cypress/fixtures/example.json

This file was deleted.

60 changes: 0 additions & 60 deletions e2e-tests/gatsby-image/cypress/integration/fixed.js

This file was deleted.

33 changes: 0 additions & 33 deletions e2e-tests/gatsby-image/cypress/integration/fluid.js

This file was deleted.

101 changes: 0 additions & 101 deletions e2e-tests/gatsby-image/cypress/integration/image.js

This file was deleted.

18 changes: 0 additions & 18 deletions e2e-tests/gatsby-image/cypress/integration/traced.js

This file was deleted.

17 changes: 0 additions & 17 deletions e2e-tests/gatsby-image/cypress/plugins/index.js

This file was deleted.

Loading