From 733dd9753c1579601843755752fd1f69b5e8dc7f Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 22 Jun 2020 10:53:17 +0100 Subject: [PATCH] cypress - retain "builder:token" cookie between tests --- packages/builder/cypress/support/cookies.js | 3 +++ packages/builder/cypress/support/index.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 packages/builder/cypress/support/cookies.js diff --git a/packages/builder/cypress/support/cookies.js b/packages/builder/cypress/support/cookies.js new file mode 100644 index 0000000000..bfb470c57b --- /dev/null +++ b/packages/builder/cypress/support/cookies.js @@ -0,0 +1,3 @@ +Cypress.Cookies.defaults({ + whitelist: "builder:token", +}) diff --git a/packages/builder/cypress/support/index.js b/packages/builder/cypress/support/index.js index a80764cb2c..15c9d759fc 100644 --- a/packages/builder/cypress/support/index.js +++ b/packages/builder/cypress/support/index.js @@ -14,6 +14,7 @@ // *********************************************************** // Import commands.js using ES2015 syntax: +import "./cookies" import "./commands" // Alternatively you can use CommonJS syntax: