Skip to content

Commit

Permalink
Updates Cypress defaults to use "preserve"
Browse files Browse the repository at this point in the history
  • Loading branch information
alvincrespo authored Feb 6, 2021
1 parent ad1ff5a commit d573e67
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ context('Cypress.Cookies', () => {
// now any cookie with the name 'session_id' will
// not be cleared before each new test runs
Cypress.Cookies.defaults({
whitelist: 'session_id',
preserve: 'session_id',
})
})
})
Expand All @@ -84,8 +84,8 @@ context('Cypress.Server', () => {
Cypress.Server.defaults({
delay: 0,
force404: false,
whitelist (xhr) {
// handle custom logic for whitelisting
preserve (xhr) {
// handle custom logic for preserving
},
})
})
Expand Down

0 comments on commit d573e67

Please sign in to comment.