From b021197966e8291bc1f5c4349660f9fc0b813d7e Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 5 Feb 2024 12:58:07 +0300 Subject: [PATCH] chore: fix flaky --- projects/demo-cypress/src/tests/elastic-sticky.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/demo-cypress/src/tests/elastic-sticky.cy.ts b/projects/demo-cypress/src/tests/elastic-sticky.cy.ts index 2728bec89afe..133a14681cdd 100644 --- a/projects/demo-cypress/src/tests/elastic-sticky.cy.ts +++ b/projects/demo-cypress/src/tests/elastic-sticky.cy.ts @@ -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)); }); });