Skip to content

Commit

Permalink
chore: flaky again
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Feb 13, 2024
1 parent 51187c7 commit 7902bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/demo-cypress/src/tests/elastic-sticky.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ describe('ElasticSticky', () => {
);

it('callback is triggered with 0.5 when half of sticky would be hidden', () => {
cy.get('#scroll').scrollTo(0, 75);
cy.get('@changeSpy').should('be.called').should('have.been.calledWithMatch', 0.5);
cy.get('#scroll').scrollTo(0, 70);
cy.get('@changeSpy').should('be.called').should('have.been.calledWith', 0.6);
});

it('callback is triggered with 0 when sticky is fully hidden', () => {
cy.get('#scroll').scrollTo(0, 100);
cy.get('@changeSpy').should('be.called').should('have.been.calledWithMatch', 0);
cy.get('@changeSpy').should('be.called').should('have.been.calledWith', 0);
});
});

0 comments on commit 7902bfd

Please sign in to comment.