-
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 regression in 3.5.0 where a cy.visit that changes superdoma… #5702
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@brian-mann there isn't an open issue for this AFAIK, think we should merge this in anyways? it definitely fixes some issue... people might not even know they have this issue |
@flotwig definitely needs a corresponding issue opened. The regression fix is easily describable and should be noted in the issue. |
Removing the superdomain stitching may in fact fix other esoteric issues that are open - but they may be very hard to find... The superdomain visit buffering is likely the cause of other difficult to understand/debug issues due to the state changes that happen. This could have manifested itself in situations where Cypress changes the superdomain - but then does not serve itself correctly (instead it would proxy to the real origin server). Another possible candidate would be seeing the "Cypress did not launch this browser" message about not being able to connect to the automation extension. @flotwig and @jennifer-shehane might be worth peaking around / searching through issues to see if we can find others that fixing this will close. |
User facing changelog
cy.visit
that changes superdomain would incorrectly clear cookies of other domains.cy.visit
s that cause a superdomain change will now result in 2 requests to your origin server. This should not affect tests, as tests will still re-run on a superdomain change.Additional details
cookies without whitelist in a cy.visit when redirected to a HTTP URL can set cookies on lots of redirects, ending with different domain:
withlocalhost
baseUrlHow has the user experience changed?
PR Tasks