From b4f6d3a96f725f9804ae7e4674986cf8b0a59a9a Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 13 Jun 2026 21:43:18 +0300 Subject: [PATCH] test carousel size speed --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 7a40627..02b5fda 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -450,13 +450,21 @@ describe('homepage sponsor strip', () => { const maskImage = carouselStyle.maskImage || carouselStyle.webkitMaskImage - expect(carouselRatio).to.be.closeTo(0.6, 0.02) + expect(carouselRatio).to.be.closeTo(0.7, 0.02) expect(leftBuffer).to.be.closeTo(rightBuffer, 1) expect(maskImage).to.contain('50px') }) }) }) + it('uses the faster carousel timing', () => { + cy.get('[data-cy="sponsor-track"]').then((trackElements) => { + const trackStyle = getComputedStyle(trackElements[0]) + + expect(trackStyle.animationDuration).to.equal('24s') + }) + }) + it('scrolls the sponsor logos from right to left', () => { cy.get('[data-cy="sponsor-track"]').then((trackElements) => { const startingLeft = trackElements[0].getBoundingClientRect().left