0
0
Fork 0

Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 6243-generalizeCmrSection

This commit is contained in:
Jorge Penadés 2024-05-06 08:55:09 +02:00
commit 733f7a0702
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,15 @@ Cypress.Commands.add('login', (user) => {
}, },
}).then((response) => { }).then((response) => {
window.localStorage.setItem('token', response.body.token); 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);
});
}); });
}); });