0
0
Fork 0

Merge remote-tracking branch 'origin/dev' into 7271_boilerplate_zones

This commit is contained in:
Javier Segarra 2024-05-06 10:03:29 +02:00
commit 211da4a995
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);
});
});
});