test wider faster carousel
This commit is contained in:
parent
b4f6d3a96f
commit
6f4dff987e
1 changed files with 2 additions and 2 deletions
|
|
@ -450,7 +450,7 @@ describe('homepage sponsor strip', () => {
|
||||||
const maskImage =
|
const maskImage =
|
||||||
carouselStyle.maskImage || carouselStyle.webkitMaskImage
|
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(leftBuffer).to.be.closeTo(rightBuffer, 1)
|
||||||
expect(maskImage).to.contain('50px')
|
expect(maskImage).to.contain('50px')
|
||||||
})
|
})
|
||||||
|
|
@ -461,7 +461,7 @@ describe('homepage sponsor strip', () => {
|
||||||
cy.get('[data-cy="sponsor-track"]').then((trackElements) => {
|
cy.get('[data-cy="sponsor-track"]').then((trackElements) => {
|
||||||
const trackStyle = getComputedStyle(trackElements[0])
|
const trackStyle = getComputedStyle(trackElements[0])
|
||||||
|
|
||||||
expect(trackStyle.animationDuration).to.equal('24s')
|
expect(trackStyle.animationDuration).to.equal('20s')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue