0
0
Fork 0

Merge pull request 'refs #7113 fix test' (!318) from 7113-fixClaimPhoto into dev

Reviewed-on: verdnatura/salix-front#318
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Javier Casado 2024-05-06 06:38:47 +00:00
commit f6abcc6693
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);
});
}); });
}); });