Skip to content

Commit

Permalink
Updates Cypress defaults to use "preserve" (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvincrespo committed Feb 6, 2021
1 parent ad1ff5a commit fb24f9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## [Unreleased]

### Fixed
* update cypress examples to use "preserve" instead of "whitelist" [PR 75](https://github.com/shakacode/cypress-on-rails/pull/75) by [alvincrespo](https://github.com/alvincrespo)


## [1.8.0]
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.7.0...v1.8.0

Expand Down
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 fb24f9c

Please sign in to comment.