test: refs #8484 await main content loaded #1318

Merged
alexm merged 54 commits from 8484-waitToDomContentLoadedInTests into dev 2025-02-27 06:19:45 +00:00
1 changed files with 0 additions and 21 deletions
Showing only changes of commit c56c415a5a - Show all commits

View File

@ -55,27 +55,6 @@ Cypress.Commands.add('login', (user = 'developer') => {
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) => {