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 CT support for angular 18 #29584

Merged
merged 6 commits into from
Jun 7, 2024
Merged

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented May 28, 2024

Additional details

This PR adds support for Angular 18 CT which was released last week. From what I can see from the Angular 18 Changelog there isn't anything for me to believe the changes to @angular/core and other packages cause our test harness to break. With that being said, the only requirement was to add support in the scaffolded dependencies and added Angular 18 system tests.

This PR also updates the angular 17 system test to not use the release candidate and instead use the published version

Steps to test

How has the user experience changed?

PR Tasks

Copy link

cypress bot commented May 28, 2024

Passing run #55684 ↗︎

0 232 4 0 Flakiness 0

Details:

fix changelog
Project: cypress Commit: 649728979a
Status: Passed Duration: 11:36 💡
Started: Jun 5, 2024 6:39 PM Ended: Jun 5, 2024 6:51 PM

Review all test suite changes for PR #29584 ↗︎

@AtofStryker AtofStryker force-pushed the feat/support_angular_18 branch from 203aeaa to 7468794 Compare May 29, 2024 13:36
@AtofStryker AtofStryker marked this pull request as ready for review May 29, 2024 15:03
@AtofStryker
Copy link
Contributor Author

This PR does not support angular signals, but that is being worked on separately. We likely want to introduce this PR first so users can get scaffolded angular 18 support in the CLI, then introduce our new signals test harness that users consuming signals in angular 17 and 18 can leverage. At some point, we will want to merge this new test harness upstream and deprecate support for older versions of angular

@AtofStryker AtofStryker force-pushed the feat/support_angular_18 branch from aed9201 to 0c3a327 Compare June 5, 2024 00:51
Copy link
Contributor

@jordanpowell88 jordanpowell88 left a comment

Choose a reason for hiding this comment

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

PR looks great @AtofStryker. Thank you for picking this up


**Bugfixes:**

- Fixed an issue where `inlineSourceMaps` was still being used when `sourceMaps` was provided in a users typescript config for typescript version 5. Fixes [#26203](https://github.com/cypress-io/cypress/issues/26203).
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a wonderful fix BTW. I run into this all the time when running Angular apps with CT 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. It actually went in with #29568 but I forgot to update the changelog after release so the change entry was in the wrong cypress version 😬 .

"@angular/platform-browser": "^17.0.0-rc.2",
"@angular/platform-browser-dynamic": "^17.0.0-rc.2",
"@angular/router": "^17.0.0-rc.2",
"@angular/animations": "^17.3.10",
Copy link
Contributor

Choose a reason for hiding this comment

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

Great job cleaning this up btw.

@AtofStryker AtofStryker merged commit cceea03 into develop Jun 7, 2024
80 of 82 checks passed
@AtofStryker AtofStryker deleted the feat/support_angular_18 branch June 7, 2024 16:19
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 18, 2024

Released in 13.12.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 18, 2024
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.

Support Angular 18 for Component Testing
3 participants