7430_devToTest #388

Merged
alexm merged 282 commits from 7430_devToTest into test 2024-05-21 09:26:36 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 755730a030 - 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);
});
});
});