From b2a77a13f8d5f0ec3beb8a88fd1ad89657ad26b1 Mon Sep 17 00:00:00 2001 From: olav Date: Mon, 1 Aug 2022 11:50:59 +0200 Subject: [PATCH] chore: update cypress (#1170) --- frontend/cypress.json | 3 ++- frontend/cypress/support/commands.ts | 4 ---- frontend/package.json | 2 +- frontend/yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/frontend/cypress.json b/frontend/cypress.json index ba6b740e2d..ea78e63c8d 100644 --- a/frontend/cypress.json +++ b/frontend/cypress.json @@ -2,5 +2,6 @@ "projectId": "tc2qff", "defaultCommandTimeout": 12000, "screenshotOnRunFailure": false, - "video": false + "video": false, + "experimentalSessionAndOrigin": true } diff --git a/frontend/cypress/support/commands.ts b/frontend/cypress/support/commands.ts index 9e95963650..fdbea23436 100644 --- a/frontend/cypress/support/commands.ts +++ b/frontend/cypress/support/commands.ts @@ -27,10 +27,6 @@ const AUTH_USER = Cypress.env('AUTH_USER'); const AUTH_PASSWORD = Cypress.env('AUTH_PASSWORD'); -Cypress.config({ - experimentalSessionSupport: true, -}); - Cypress.Commands.add('login', (user = AUTH_USER, password = AUTH_PASSWORD) => cy.session(user, () => { cy.visit('/'); diff --git a/frontend/package.json b/frontend/package.json index 02f64288f0..4a13de519d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -67,7 +67,7 @@ "chartjs-adapter-date-fns": "2.0.0", "classnames": "2.3.1", "copy-to-clipboard": "3.3.1", - "cypress": "9.5.3", + "cypress": "9.7.0", "date-fns": "2.28.0", "debounce": "1.2.1", "deep-diff": "1.0.2", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 3ae9cb0a60..8a5357fc09 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -3280,10 +3280,10 @@ csstype@^3.1.0: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.0.tgz#4ddcac3718d787cf9df0d1b7d15033925c8f29f2" integrity sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA== -cypress@9.5.3: - version "9.5.3" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.5.3.tgz#7c56b50fc1f1aa69ef10b271d895aeb4a1d7999e" - integrity sha512-ItelIVmqMTnKYbo1JrErhsGgQGjWOxCpHT1TfMvwnIXKXN/OSlPjEK7rbCLYDZhejQL99PmUqul7XORI24Ik0A== +cypress@9.7.0: + version "9.7.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.7.0.tgz#bf55b2afd481f7a113ef5604aa8b693564b5e744" + integrity sha512-+1EE1nuuuwIt/N1KXRR2iWHU+OiIt7H28jJDyyI4tiUftId/DrXYEwoDa5+kH2pki1zxnA0r6HrUGHV5eLbF5Q== dependencies: "@cypress/request" "^2.88.10" "@cypress/xvfb" "^1.2.4"