-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Clone setCookie options instead of mutating #2707
Conversation
lilaconlee
commented
Nov 1, 2018
- Fixes cy.setCookie always sets the same cookie if you pass the same options object #2701
So - this is totally all 👍 but as I mentioned to @jennifer-shehane this is not actually the first issue related to this problem - there are other issues open for this (that i'd have to dig out). I remember one being about I'll keep this PR open, but won't merge it until more discussion happens and if there's an easy way to fix these in 1 shot I'd prefer it. |
I think that this should be merged in today. Regardless - I do agree with brian in this being a larger issue that should be opened and investigated. |
Hey @brian-mann, can we merge this fix in? Also, @lilaconlee, can you open an issue to address the larger issues brian referenced in his comment above? |
I think if we wanted to merge this in, we'd want to reset it to a previous commit. I tried solving the problem earlier in the process as Brian suggested, but couldn't quite get it. I'll reset to that commit and make the new issue. Edit: Issue #3171 created for this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine to go in today, and we can fix other instances of this as they crop up/someone can go through them all as described in #3171.
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 |