test carousel size speed
This commit is contained in:
parent
000d89bf9e
commit
b4f6d3a96f
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue