preserveOnce #23639
Answered
by
emilyrohrbough
roydekleijn
asked this question in
Questions and Help
preserveOnce
#23639
-
Hello, I norices cy.getCookies().then(cookies => {
const namesOfCookies = cookies.map(c => c.name)
Cypress.Cookies.preserveOnce(...namesOfCookies)
}) Any help would be much appreciated. Maybe we can eventually update the documentation, |
Beta Was this translation helpful? Give feedback.
Answered by
emilyrohrbough
Aug 31, 2022
Replies: 1 comment 2 replies
-
@roydekleijn
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
emilyrohrbough
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@roydekleijn
cy.session()
will preserve the cookies for you so using the command similar to the following will persist these cookies for you: