#6911 save on enter #207

Merged
jsegarra merged 50 commits from 6911-saveOnEnter into dev 2024-06-07 07:20:48 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit fc94454cfd - Show all commits

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