Skip to content

Commit

Permalink
fix: replace wait by built-in retry process
Browse files Browse the repository at this point in the history
Signed-off-by: Milouu <milan.roustan@owkin.com>
  • Loading branch information
Milouu committed Mar 6, 2024
1 parent 07f60b8 commit 6342d35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e2e-tests/cypress/e2e/users.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ describe('Users page', () => {
cy.get('select').eq(0).select('ADMIN');
cy.getDataCy('submit-form').click();

cy.wait(500);
cy.get('[data-name="Test"]')
.first()
.then(($el) => {
cy.wrap($el).should('have.data', 'role', 'ADMIN');
.should(($el) => {
expect($el).to.have.data('role', 'ADMIN');
});
});

Expand Down

0 comments on commit 6342d35

Please sign in to comment.