This commit is contained in:
parent
5d4feb34d7
commit
c56c415a5a
|
@ -55,27 +55,6 @@ Cypress.Commands.add('login', (user = 'developer') => {
|
||||||
window.localStorage.setItem('tokenMultimedia', body.multimediaToken.id);
|
window.localStorage.setItem('tokenMultimedia', body.multimediaToken.id);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// cy.session(['user-session', user], () => {
|
|
||||||
// cy.request({
|
|
||||||
// method: 'POST',
|
|
||||||
// url: '/api/accounts/login',
|
|
||||||
// body: {
|
|
||||||
// user: user,
|
|
||||||
// password: 'nightmare',
|
|
||||||
// },
|
|
||||||
// }).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);
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
|
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
|
||||||
|
|
Loading…
Reference in New Issue