Skip to content

Commit

Permalink
Fix randomly failing E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Jun 16, 2021
1 parent ecbba90 commit 92b6e1e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cypress/specs/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ describe('App', () => {
.as('slider');

// Move slider up by three marks and check value
cy.get('@slider').type('{uparrow}{uparrow}{uparrow}', { delay: 50 });

cy.get('@slider').type('{uparrow}');
cy.get('@slider').should('have.attr', 'aria-valuenow', 1);
cy.get('@slider').type('{uparrow}');
cy.get('@slider').should('have.attr', 'aria-valuenow', 2);
cy.get('@slider').type('{uparrow}');
cy.get('@slider').should('have.attr', 'aria-valuenow', 3);

cy.findByRole('figure', { name: 'fourD' }).should('exist');
cy.get('@vis')
.should('contain.text', '9.996e-1')
.and('contain.text', '−1e+0');
Expand Down

0 comments on commit 92b6e1e

Please sign in to comment.