diff --git a/e2e/cypress/e2e/campaign.cy.ts b/e2e/cypress/e2e/campaign.cy.ts index fc7f1f1ca..bb0e513e5 100644 --- a/e2e/cypress/e2e/campaign.cy.ts +++ b/e2e/cypress/e2e/campaign.cy.ts @@ -2,9 +2,9 @@ describe('Campaign', () => { it('should create a campaign', () => { cy.intercept({ method: 'GET', - url: Cypress.env('API') + '/housing?*' + url: Cypress.env('API') + '/housing*' }).as('findHousings'); - cy.intercept('POST', Cypress.env('API') + '/housing/count').as( + cy.intercept('GET', Cypress.env('API') + '/housing/count*').as( 'countHousings' ); cy.intercept('POST', Cypress.env('API') + '/files').as('upload'); diff --git a/e2e/cypress/e2e/sign-up.cy.ts b/e2e/cypress/e2e/sign-up.cy.ts index 10587f5d2..8b5d66ff8 100644 --- a/e2e/cypress/e2e/sign-up.cy.ts +++ b/e2e/cypress/e2e/sign-up.cy.ts @@ -1,5 +1,7 @@ import { faker } from '@faker-js/faker/locale/fr'; +const VALID_PASSWORD = '1234QWERasdf'; + describe('Sign up', () => { it('should sign up', () => { cy.visit('/connexion'); @@ -38,11 +40,11 @@ describe('Sign up', () => { cy.get('label') .contains(/Définissez votre mot de passe/i) .next() - .type('123QWEasd'); + .type(VALID_PASSWORD); cy.get('label') .contains(/Confirmez votre mot de passe/i) .next() - .type('123QWEasd{enter}'); + .type(`${VALID_PASSWORD}{enter}`); cy.get('button') .contains(/Créer mon compte/i)