-
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.clearCookie, fix HTTP redirect behavior, fix cy.visit HTTPS baseurl behavior #5478
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 |
1205147
to
3a5f5fe
Compare
which cypress version will have this fix incorporated? |
@nids2307 3.6.1, which will be released later today, if not today then Monday. |
clearCookie
not working anymore in 3.5.0 under certain baseUrls #5453:80
#5367User facing changelog
cy.clearCookie
would not act as expected under certainbaseUrl
s. #.5453cy.visit
to an HTTPS URL using the default port, 443. #.5367Failed to parse or set cookie named "foo".
when loading certain websites. #.4990Additional details
clear:cookie
request, we would directly use the user-supplied domain.clear:cookie
to use the result of Network.getAllCookies to get the correctdomain
parameter for the Network.deleteCookies callrequest
that would let us return a Promise fromoptions.followRedirect
, so we don't need our undocumented, hard-to-understandreq.init
hack anymore: Support asynchronous followRedirect filter (callback or Promise) request/request#2647request
, now that the realrequest
is unmaintained: https://github.com/cypress-io/requestreq.init
stuff, it works as desired: 7c0304fcy.getCookies
is 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 testingbuffers
always adds the default port to a URL when storing/retrieving a buffercy.visit
caused a navigation or not.How has the user experience changed?
PR Tasks