Skip to content

chore: Update to cypress v12 #2061

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 6 commits into from
Apr 25, 2023
Merged

chore: Update to cypress v12 #2061

merged 6 commits into from
Apr 25, 2023

Conversation

taty2010
Copy link
Contributor

@taty2010 taty2010 commented Apr 21, 2023

Summary

This PR updates our tests from cypress v9 to v12 Migration Docs

  • Updated the cypress-io/github-action to v5
  • cy:open now defaults to Chrome and E2E

closes https://github.com/netlify/pod-ecosystem-frameworks/issues/333

Test plan

  1. Visit the Deploy Preview (insert link to specific page) ...

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/6448076e78792c00080f9157
😎 Deploy Preview https://deploy-preview-2061--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/6448076f78792c00080f9161
😎 Deploy Preview https://deploy-preview-2061--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/6448076f78792c00080f9166
😎 Deploy Preview https://deploy-preview-2061--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Apr 21, 2023
@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/6448076f407bbc000847ba03
😎 Deploy Preview https://deploy-preview-2061--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/6448076ff181300007b82d52
😎 Deploy Preview https://deploy-preview-2061--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/6448076f407bbc000847ba08
😎 Deploy Preview https://deploy-preview-2061--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/64480770b4673700087c9d5b
😎 Deploy Preview https://deploy-preview-2061--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/6448076ffd36740008ad9a8b
😎 Deploy Preview https://deploy-preview-2061--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 21, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit bad06dc
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/6448076f214b1200082fddfa
😎 Deploy Preview https://deploy-preview-2061--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@taty2010 taty2010 changed the title chore: migrate to cypress 12 chore: Update to cypress v12 Apr 24, 2023
@taty2010 taty2010 self-assigned this Apr 24, 2023
@taty2010 taty2010 marked this pull request as ready for review April 24, 2023 16:23
@taty2010 taty2010 requested a review from a team April 24, 2023 16:23
@@ -62,9 +62,9 @@ jobs:
headless: true
record: true
parallel: true
config-file: cypress/config/ci.json
config-file: cypress/config/ci.config.ts

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're upgrading Cypress, I'd propose to also upgrade its GitHub action. We seem to currently use v2, while v5 is the latest: https://github.com/cypress-io/github-action/releases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you pointed that out looks like V2 was going to stop working after May

GitHub announced their plan to disable save-state and set-output commands by May 31, 2023. This will prevent cypress-io/github-action version v4.2.1, and earlier, running after this date since they use set-output. Affected users should update to using v5 of the cypress-io/github-action action before the deadline.

@kodiakhq kodiakhq bot merged commit e379683 into main Apr 25, 2023
@kodiakhq kodiakhq bot deleted the tn/cypress12 branch April 25, 2023 19:39
@danez
Copy link

danez commented May 4, 2023

Just FYI: This PR made the integration tests in zip-it-and-ship-it fail. Not critical or problematic at all, but maybe we can add a comment somewhere here, which mentions that zip-it-and-ship-it needs to be updated too: netlify/zip-it-and-ship-it#1412

Or we use a composite action, so that all the configuration can be shared with zisi: https://wallis.dev/blog/composite-github-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants