0
0
Fork 0

Merge branch 'dev' into 6911-saveOnEnter

This commit is contained in:
Javier Casado 2024-05-06 11:24:48 +00:00
commit fc94454cfd
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,15 @@ Cypress.Commands.add('login', (user) => {
},
}).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);
});
});
});