Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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