Skip to content

Commit

Permalink
chore: fix flaky (#6685)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 6, 2024
1 parent 8b59ffa commit f3d19e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/demo-cypress/src/tests/elastic-sticky.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ describe('ElasticSticky', () => {
it('callback is triggered with 0.5 when half of sticky would be hidden', () => {
cy.get('#scroll')
.then(query => query.get(0).scrollTo({top: 75}))
.then(() => cy.wait(100))
.then(() => cy.wait(300))
.then(() => expect(Number(component.offset.toFixed(1))).to.equal(0.5));
});

it('callback is triggered with 0 when sticky is fully hidden', () => {
cy.get('#scroll')
.then(query => query.get(0).scrollTo({top: 100}))
.then(() => cy.wait(100))
.then(() => cy.wait(300))
.then(() => expect(Number(component.offset.toFixed(1))).to.equal(0));
});
});

0 comments on commit f3d19e1

Please sign in to comment.