diff --git a/pro/cypress/e2e/migrations/01_login.cy.js b/pro/cypress/e2e/migrations/01_login.cy.js index 55dc837500b..3cc428bc5cb 100644 --- a/pro/cypress/e2e/migrations/01_login.cy.js +++ b/pro/cypress/e2e/migrations/01_login.cy.js @@ -3,8 +3,9 @@ describe('Login Test with HTTP Request', () => { let login = ''; let password = 'user@AZERTY123' - before(async () => { - await cy.request({ + before(() => { + cy.visit('/connexion') + cy.request({ method: 'GET', url: 'http://localhost:5001/sandboxes/pro_01_create_pro_user/create_pro_user_with_venue_bank_account_and_userofferer', }).then((response) => { @@ -14,8 +15,6 @@ describe('Login Test with HTTP Request', () => { it('Should fill out the login form', () => { expect(true).to.equal(true) - cy.log(login) - cy.log(password) cy.login({ email: login, password: password, redirectUrl: "/parcours-inscription" }) cy.findAllByTestId('spinner').should('not.exist') cy.findByText('Finalisez votre inscription')