From 5d52f368eaeb120d2070043672876fbcc7a0506b Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 24 May 2026 20:55:32 +0300 Subject: [PATCH] test media navigation --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 85c5015..0c4dae4 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -12,6 +12,19 @@ describe('homepage hero', () => { }) }) + it('opens the Torah Media page from the header navigation', () => { + cy.contains('header a', 'Torah Media').click() + + cy.location('pathname').should('eq', '/media') + cy.get('header').within(() => { + cy.contains('Torah Media').should('be.visible') + cy.contains('About').should('be.visible') + cy.contains('Contact').should('be.visible') + cy.contains('Donate').should('be.visible') + }) + cy.contains('h1', 'Torah Media').should('be.visible') + }) + it('renders the hero headline with italic emphasis', () => { cy.get('[data-cy="hero"]').within(() => { cy.contains('upgrade our lives').should('be.visible')