forked from verdnatura/salix-front
Merge branch 'dev' into feature/ItemBasicData
This commit is contained in:
commit
753b5bf939
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "salix-front",
|
"name": "salix-front",
|
||||||
"version": "24.20.0",
|
"version": "24.22.0",
|
||||||
"description": "Salix frontend",
|
"description": "Salix frontend",
|
||||||
"productName": "Salix",
|
"productName": "Salix",
|
||||||
"author": "Verdnatura",
|
"author": "Verdnatura",
|
||||||
|
|
|
@ -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);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue