From d573e679015a54f1fcfab8001586a4ab6b382942 Mon Sep 17 00:00:00 2001 From: Alvin Crespo Date: Sat, 6 Feb 2021 16:19:50 -0500 Subject: [PATCH] Updates Cypress defaults to use "preserve" ref: https://github.com/cypress-io/cypress/pull/7782 --- .../spec/cypress/integration/examples/cypress_api.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }, }) })