-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: cy.request allows nested objects as qs #27908
Conversation
|
05d5bb7
to
b2c2f4e
Compare
@S-Tornqvist Does this introduce a breaking change? I'd like tests around the change in visit behavior. Let us know when this is ready for review. |
ddb9efd
to
d6b8489
Compare
I'm pretty new here so I was gonna finalize the draft and then ask some questions regarding the dependencies, changelog etc. I'm struggling a bit with the semantic pr check, but I'm getting there :) No breaking changes introduced, so I'll set the version to 13.3.1. Thanks for the heads up. |
7001f53
to
e18ada0
Compare
@jennifer-shehane the pr is now ready for review. Tests for nested querystrings has been added to |
@jennifer-shehane @AtofStryker @nagash77 could you review the pr? |
5f9438e
to
7c15d0f
Compare
Is there anything I can do more or did wrong here? @jennifer-shehane |
@S-Tornqvist sorry for the delay in response here as I have been out of office for a few months. From a glance, the code looks fine and don't think it should introduce a breaking change as it is just serializing the nested object. I am going to pull from |
Thanks! I pulled develop and resolved the changelog conflict |
@S-Tornqvist looks like there is still a conflict? |
@jennifer-shehane @AtofStryker Changing the query parsing dependency would indeed be a breaking change. It would change the results of the parsed query people are expecting as a response. The |
Yeah this unfortunately seems to be the case 🙁 . I relooked and tracked my comment back to #20302 and missed the breaking change label. Sounds like we might need a broader strategy to align parsed queries through |
This PR has not had any activity in 180 days. If no activity is detected in the next 14 days, this PR will be closed. |
This PR has been closed due to inactivity |
Additional details
cy.request()
now correctly parses nested objects and arrays for the query string (qs), which is the intended behavior. The behavior was lost in 12.0.0 (see #27745). As the qs functionality is shared betweency.visit()
andcy.request()
, the behavior ofcy.visit()
also changes.Note that the behavior only changes when using nested objects for the query string. Previously these would be parsed as
"[object Object]"
, so no useful behavior is lost.Steps to test
Example usage:
How has the user experience changed?
na
PR Tasks
cypress-documentation
?type definitions
?