forked from verdnatura/salix-front
Reviewed-on: verdnatura/salix-front#318 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
f6abcc6693
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue