From ca20b7ae432915b4de5171e627b9cf48a37beead Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 16 May 2026 21:47:14 +0300 Subject: [PATCH] test homepage hero renders --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 frontend/rabbi_gerzi/cypress/e2e/home.cy.ts diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts new file mode 100644 index 0000000..9a53cbc --- /dev/null +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -0,0 +1,32 @@ +describe('homepage hero', () => { + beforeEach(() => { + cy.visit('/') + }) + + it('renders the header navigation', () => { + 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') + }) + }) + + it('renders the hero headline with italic emphasis', () => { + cy.get('[data-cy="hero"]').within(() => { + cy.contains('upgrade our lives').should('be.visible') + cy.contains('em', 'healthy').should('be.visible') + cy.contains('em', 'integrated').should('be.visible') + cy.contains('em', 'balanced').should('be.visible') + cy.contains('Torah existence').should('be.visible') + cy.contains('Rabbi Yehoshua Gerzi').should('be.visible') + }) + }) + + it('renders the rabbi portrait image', () => { + cy.get('[data-cy="hero-portrait"]') + .should('be.visible') + .and('have.attr', 'alt') + .and('match', /Rabbi Yehoshua Gerzi/i) + }) +})