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

dependency: replace circularJSON with flatted #28683

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

emilyrohrbough
Copy link
Member

@emilyrohrbough emilyrohrbough commented Jan 11, 2024

Fixes an issue where some complex data was not completely decoded when sent from the browser to the server. This was noted that the snapshot elementsToHighlight selector with a ~ special char was encoded to \x7e but never decoded.

With this fix, we should not see the correct element highlights in test replay when a command is pinned. See Test Replay to verify content is highlighted as expected. (note: scroll appears to be broken so scroll to the bottom).

PR Tasks

cli/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

cypress bot commented Jan 11, 2024

2 flaky tests on run #53416 ↗︎

0 551 8 0 Flakiness 2

Details:

Apply suggestions from code review
Project: cypress Commit: 0d9036d098
Status: Passed Duration: 12:26 💡
Started: Jan 11, 2024 3:55 AM Ended: Jan 11, 2024 4:07 AM
Flakiness  specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs Test Replay Screenshots
Flakiness  debug.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
App - Debug Page > shows running and updating build Test Replay Screenshots

Review all test suite changes for PR #28683 ↗︎

@@ -22,6 +22,7 @@ _Released 1/16/2024 (PENDING)_

- Remove dependency on `@types/node` package. Addresses [#28473](https://github.com/cypress-io/cypress/issues/28473).
- Updated `@cypress/unique-selector` to include a performance optimization. It's possible this could improve performance of the selector playground. Addressed in [#28571](https://github.com/cypress-io/cypress/pull/28571).
- Replace [`CircularJSON`](https://www.npmjs.com/package/circular-json) with its successor [`flatted`](https://www.npmjs.com/package/flatted) version `3.2.9`. This resolves decoding issues observed in complex objects sent from the browser. Addressed in [#28683](https://github.com/cypress-io/cypress/pull/28683).
Copy link
Contributor

Choose a reason for hiding this comment

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

If the entry is under the Dependency Updates: section, should the PR title be dependency:.

@emilyrohrbough emilyrohrbough changed the title fix: replace circularJSON with flatted dependency: replace circularJSON with flatted Jan 11, 2024
@emilyrohrbough emilyrohrbough merged commit 09ce5c1 into develop Jan 11, 2024
79 of 81 checks passed
@emilyrohrbough emilyrohrbough deleted the em/special-char-serialization branch January 11, 2024 17:10
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 17, 2024

Released in 13.6.3.

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

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

3 participants