test wider faster carousel

This commit is contained in:
Yisroel Baum 2026-06-13 21:45:07 +03:00
parent b4f6d3a96f
commit 6f4dff987e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -450,7 +450,7 @@ describe('homepage sponsor strip', () => {
const maskImage =
carouselStyle.maskImage || carouselStyle.webkitMaskImage
expect(carouselRatio).to.be.closeTo(0.7, 0.02)
expect(carouselRatio).to.be.closeTo(0.8, 0.02)
expect(leftBuffer).to.be.closeTo(rightBuffer, 1)
expect(maskImage).to.contain('50px')
})
@ -461,7 +461,7 @@ describe('homepage sponsor strip', () => {
cy.get('[data-cy="sponsor-track"]').then((trackElements) => {
const trackStyle = getComputedStyle(trackElements[0])
expect(trackStyle.animationDuration).to.equal('24s')
expect(trackStyle.animationDuration).to.equal('20s')
})
})