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