From c56c415a5a87cb8e28adcf12642c790df12b26ac Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 26 Feb 2025 16:36:20 +0100 Subject: [PATCH] fix: refs #8484 rollback --- test/cypress/support/commands.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 519bc43bf..096a29dc1 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -55,27 +55,6 @@ Cypress.Commands.add('login', (user = 'developer') => { window.localStorage.setItem('tokenMultimedia', body.multimediaToken.id); }); }); - // cy.session(['user-session', user], () => { - // cy.request({ - // method: 'POST', - // url: '/api/accounts/login', - // body: { - // user: user, - // password: 'nightmare', - // }, - // }).then((response) => { - // window.localStorage.setItem('token', response.body.token); - // cy.request({ - // method: 'GET', - // url: '/api/VnUsers/ShareToken', - // headers: { - // Authorization: window.localStorage.getItem('token'), - // }, - // }).then(({ body }) => { - // window.localStorage.setItem('tokenMultimedia', body.multimediaToken.id); - // }); - // }); - // }); }); Cypress.Commands.overwrite('visit', (originalFn, url, options) => {