Fix cy.clearCookie, fix HTTP redirect behavior, fix cy.visit HTTPS baseurl behavior#5478
Merged
brian-mann merged 33 commits intodevelopfrom Nov 8, 2019
Merged
Fix cy.clearCookie, fix HTTP redirect behavior, fix cy.visit HTTPS baseurl behavior#5478brian-mann merged 33 commits intodevelopfrom
brian-mann merged 33 commits intodevelopfrom
Conversation
Contributor
|
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 |
1205147 to
3a5f5fe
Compare
This was referenced Nov 7, 2019
brian-mann
reviewed
Nov 7, 2019
brian-mann
approved these changes
Nov 7, 2019
This was referenced Nov 8, 2019
|
which cypress version will have this fix incorporated? |
Contributor
Author
|
@nids2307 3.6.1, which will be released later today, if not today then Monday. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
clearCookienot working anymore in 3.5.0 under certain baseUrls #5453:80#5367User facing changelog
cy.clearCookiewould not act as expected under certainbaseUrls. #.5453cy.visitto an HTTPS URL using the default port, 443. #.5367Failed to parse or set cookie named "foo".when loading certain websites. #.4990Additional details
clear:cookierequest, we would directly use the user-supplied domain.clear:cookieto use the result of Network.getAllCookies to get the correctdomainparameter for the Network.deleteCookies callrequestthat would let us return a Promise fromoptions.followRedirect, so we don't need our undocumented, hard-to-understandreq.inithack anymore: Support asynchronous followRedirect filter (callback or Promise) request/request#2647request, now that the realrequestis unmaintained: https://github.com/cypress-io/requestreq.initstuff, it works as desired: 7c0304fcy.getCookiesis only returning cookies for the current domain, not all domains. This is probably wrong. cy.getCookies() is empty but cookies are still sent #1547cy.clearCookies? cy.clearCookies should clear *ALL* cookies of all domains #408cy.clear/getCookies({ domain: null })to clear/return ALL cookies for testingbuffersalways adds the default port to a URL when storing/retrieving a buffercy.visitcaused a navigation or not.How has the user experience changed?
PR Tasks