From c774c73b268ea01c144ffdc060e2231363727fff Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 6 Jun 2026 22:34:49 +0300 Subject: [PATCH] test mobile testimonial previews --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index f82e17e..16ab7c6 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -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', () => { cy.get('[data-cy="testimonials"]').within(() => { cy.get('[data-cy="testimonial-active"]')