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

feat: add support for angular 17 #28152

Merged
merged 11 commits into from Nov 7, 2023
Merged

Conversation

jordanpowell88
Copy link
Collaborator

@jordanpowell88 jordanpowell88 commented Oct 26, 2023

Additional details

This PR adds support for Angular 17 CT set to release on November 7. AFAIK their are no breaking changes and just requires a bump in the scaffold deps + system tests example for version 17. This PR currently uses the Angular 17 Release Candidate to validate it works. We will need to change this before merging

Steps to test

Run yarn dev and open an angular 17 project using using the Release candidate.

How has the user experience changed?

No changes expected

PR Tasks

@jordanpowell88
Copy link
Collaborator Author

@cypress
Copy link

cypress bot commented Oct 26, 2023

Passing run #52125 ↗︎

0 110 0 0 Flakiness 0

Details:

update ct project dir angular version
Project: cypress Commit: 5ac72a57c3
Status: Passed Duration: 14:01 💡
Started: Nov 3, 2023 8:24 PM Ended: Nov 3, 2023 8:38 PM

Review all test suite changes for PR #28152 ↗︎

MikeMcC399

This comment was marked as resolved.

@MikeMcC399
Copy link
Contributor

@jordanpowell88

You need to write

separately in the original PR text, otherwise GitHub doesn't pick it up and won't link it automatically, to close it when the PR is closed.

image

from https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

Copy link
Contributor

@MikeMcC399 MikeMcC399 left a comment

Choose a reason for hiding this comment

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

Thanks for changing the syntax!

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Nov 2, 2023

@jordanpowell88

According to https://angular.io/guide/versions only Angular 14, 15, and 16 are actively supported by Angular, so 13 should probably be removed.

Also Angular 14 requires Node.js 14 or 16 and Cypress no longer supports these versions of Node.js (see https://docs.cypress.io/guides/getting-started/installing-cypress#Nodejs), so Angular 14 should probably also be removed from Cypress support.

Since removal would be a breaking change this might need to be reserved for a later Cypress major version release. (It would however be possible to remove the old system tests and leave the version check without causing a breaking change.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't need system tests for both angular-16 and angular-16.1 anymore.

'@angular/platform-browser/testing': require.resolve('@angular/platform-browser/testing'),
'@angular/platform-browser': require.resolve('@angular/platform-browser'),
'@angular/platform-browser-dynamic/testing': require.resolve('@angular/platform-browser-dynamic/testing'),
'@angular/platform-browser-dynamic': require.resolve('@angular/platform-browser-dynamic'),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes in angular 17 to zone.js/testing cause the shared cypress.config.ts from project-fixtures/angular/cypress.config.ts to be invalid so needed create a unique one here

@jordanpowell88 jordanpowell88 changed the title feat(webpack-dev-server): add support for angular 17 feat: add support for angular 17 Nov 3, 2023
Copy link
Contributor

@astone123 astone123 left a comment

Choose a reason for hiding this comment

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

nice! 🎉

Copy link
Contributor

@mike-plummer mike-plummer left a comment

Choose a reason for hiding this comment

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

One comment on versioning, otherwise looks good

Comment on lines +6 to +9
**Features:**

- Adds Component Testing support for Angular version 17. Addresses [#28153](https://github.com/cypress-io/cypress/issues/28153).

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a feature we should bump the next version number to 13.5.0, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup

Copy link
Member

Choose a reason for hiding this comment

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

This check should have ensured this was bumped before merging...

@jordanpowell88 jordanpowell88 merged commit e8fc268 into develop Nov 7, 2023
84 checks passed
@jordanpowell88 jordanpowell88 deleted the jordanpowell88/angular-17 branch November 7, 2023 12:35
cacieprins pushed a commit that referenced this pull request Nov 7, 2023
* feat(webpack-dev-server): add support for angular 17

* update changelog

* fix broken spec pattern

* update to rc 2 for cli

* remove = from dependency minVersion lists

* update angular 17 rc version and update dep test

* add projectDirFolder to fixtures for angular-17

* resolve broken system tests

* update ct project dir angular version
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 8, 2023

Released in 13.5.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.5.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Angular 17 Support for CT
5 participants