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