From 90b819233bf7553a29b4cf43b3d99d9ad4b42028 Mon Sep 17 00:00:00 2001 From: YoannNumericite Date: Fri, 1 Nov 2024 11:55:25 +0100 Subject: [PATCH] fix: fix create and delete users test --- webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js b/webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js index 8f7c89ec..826438eb 100755 --- a/webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js +++ b/webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js @@ -38,8 +38,9 @@ describe('jdma-admin', () => { it('create and delete users', () => { cy.visit(`${app_url}${selectors.dashboard.users}`); + cy.reload() for(let i = 0; i < 3; i++) { - cy.contains('button', 'Ajouter un nouvel utilisateur').click(); + cy.contains('button', 'Ajouter un nouvel utilisateur').should('be.visible').click(); cy.wait(1000) fillForm({ email: `test${i}@gmail.com`, password: userPassword, firstName: `Prénom ${i}`, lastName: `Nom ${i}` }); cy.contains('button', 'Créer').click();