test mobile testimonial previews
This commit is contained in:
parent
b88fe99b38
commit
c774c73b26
1 changed files with 10 additions and 0 deletions
|
|
@ -227,6 +227,16 @@ describe('homepage testimonials carousel', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('hides side previews on narrow screens', () => {
|
||||||
|
cy.viewport(390, 800)
|
||||||
|
cy.get('[data-cy="testimonials"]').within(() => {
|
||||||
|
cy.get('[data-cy="testimonial-active"]').should('be.visible')
|
||||||
|
cy.get('[data-cy="testimonial-previous-preview"]')
|
||||||
|
.should('not.be.visible')
|
||||||
|
cy.get('[data-cy="testimonial-next-preview"]').should('not.be.visible')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
it('advances to the next testimonial when next is clicked', () => {
|
it('advances to the next testimonial when next is clicked', () => {
|
||||||
cy.get('[data-cy="testimonials"]').within(() => {
|
cy.get('[data-cy="testimonials"]').within(() => {
|
||||||
cy.get('[data-cy="testimonial-active"]')
|
cy.get('[data-cy="testimonial-active"]')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue