Skip to content

Commit fb24f9c

Browse files
authored
Updates Cypress defaults to use "preserve" (#75)
1 parent ad1ff5a commit fb24f9c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [Unreleased]
2+
3+
### Fixed
4+
* 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)
5+
6+
17
## [1.8.0]
28
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.7.0...v1.8.0
39

lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ context('Cypress.Cookies', () => {
6565
// now any cookie with the name 'session_id' will
6666
// not be cleared before each new test runs
6767
Cypress.Cookies.defaults({
68-
whitelist: 'session_id',
68+
preserve: 'session_id',
6969
})
7070
})
7171
})
@@ -84,8 +84,8 @@ context('Cypress.Server', () => {
8484
Cypress.Server.defaults({
8585
delay: 0,
8686
force404: false,
87-
whitelist (xhr) {
88-
// handle custom logic for whitelisting
87+
preserve (xhr) {
88+
// handle custom logic for preserving
8989
},
9090
})
9191
})

0 commit comments

Comments
 (0)