#7271 - Zones Boilerplate #327

Merged
jsegarra merged 12 commits from 7271_boilerplate_zones into dev 2024-05-08 06:17:42 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 211da4a995 - Show all commits

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);
});
});
});