diff --git a/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js b/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js index ca5b80a..fd73fb0 100644 --- a/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js +++ b/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js @@ -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', }) }) }) @@ -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 }, }) })