Skip to content

Commit

Permalink
fix: fix create and delete users test
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannNumericite committed Nov 1, 2024
1 parent 786ca91 commit 90b8192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp-backoffice/cypress/e2e/jdma/bo/admin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 90b8192

Please sign in to comment.