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