test mobile testimonial previews

This commit is contained in:
Yisroel Baum 2026-06-06 22:34:49 +03:00
parent b88fe99b38
commit c774c73b26
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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"]')