Skip to content
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

breaking: remove vue2 support in Cypress 14 #30502

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Oct 30, 2024

Additional details

Removes the cypress/vue2 package and vue 2 support from Cypress 14

Testing checklist

  • What does trying to run CT scaffolding with a vue 2 project look like?
    The option no longer shows up in pick a framework.
Screenshot 2024-11-04 at 10 55 38 AM

Users can continue to scaffold Vue 3 with vite, but the dependencies will not be detected since vue2 is installed
Screenshot 2024-11-04 at 10 55 42 AM
Screenshot 2024-11-04 at 10 55 45 AM

The launchpad will warn the user that the dependencies are not detected
Screenshot 2024-11-04 at 10 30 15 AM

test harness scaffold will fail to mount component
Screenshot 2024-11-04 at 10 57 14 AM

  • can I install the test harness independently
    If having an existing project, running the default cypress/vue2 harness will fail
Screenshot 2024-11-04 at 10 30 55 AM

The user can install the @cypress/vue2 package as laid out in cypress-io/cypress-documentation#5977 migration guide

Screenshot 2024-11-04 at 10 32 54 AM

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker changed the base branch from develop to breaking/remove_nuxt2_support October 30, 2024 23:28
Copy link

cypress bot commented Oct 31, 2024

cypress    Run #58142

Run Properties:  status check passed Passed #58142  •  git commit 69d061ea4b: breaking: Cypress Component Testing no longer supports vue2 [run ci]
Project cypress
Branch Review breaking/remove_vue2_support
Run status status check passed Passed #58142
Run duration 20m 55s
Commit git commit 69d061ea4b: breaking: Cypress Component Testing no longer supports vue2 [run ci]
Committer AtofStryker
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 6
Tests that did not run due to a developer annotating a test with .skip  Pending 1327
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 29360
View all changes introduced in this branch ↗︎
UI Coverage  46.67%
  Untested elements 187  
  Tested elements 168  
Accessibility  92.55%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 894  

@AtofStryker AtofStryker force-pushed the breaking/remove_vue2_support branch 3 times, most recently from 2b19bdc to 0a80f91 Compare October 31, 2024 03:00
@AtofStryker AtofStryker force-pushed the breaking/remove_nuxt2_support branch from 6f7a3b0 to f1fcebd Compare November 3, 2024 20:00
Base automatically changed from breaking/remove_nuxt2_support to release/14.0.0 November 3, 2024 21:07
@AtofStryker AtofStryker force-pushed the breaking/remove_vue2_support branch from 0a80f91 to 5c7f7a4 Compare November 4, 2024 02:08
@AtofStryker AtofStryker marked this pull request as ready for review November 4, 2024 16:10
@AtofStryker AtofStryker self-assigned this Nov 4, 2024
@AtofStryker AtofStryker added type: breaking change Requires a new major release version Cypress 14 Issues scoped for Cypress 14 labels Nov 4, 2024
Comment on lines +19 to +20
// Alternatively you can use CommonJS syntax:
// require('./commands')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the whole support file or just this line? this line just gets generated in scaffolding cypress is the only reason I ask because we don't use this support file for anything

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh ok. Up to you then. I just noticed it was commented out 🤷🏻

@AtofStryker AtofStryker force-pushed the breaking/remove_vue2_support branch from 5c7f7a4 to 69d061e Compare November 5, 2024 12:54
@AtofStryker AtofStryker merged commit ccb6e28 into release/14.0.0 Nov 5, 2024
99 of 112 checks passed
@AtofStryker AtofStryker deleted the breaking/remove_vue2_support branch November 5, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cypress 14 Issues scoped for Cypress 14 type: breaking change Requires a new major release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove official support for Vue 2 for CT Testing (deprecate cypress/vue2 package on npm)
2 participants