From 39bd4cc5f599e89d0366fce75be8a69236c6b561 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 16 May 2026 22:00:37 +0300 Subject: [PATCH] test projects grid renders --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 1da5a08..0dbd3cb 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -148,3 +148,24 @@ describe('homepage sponsor strip', () => { }) }) }) + +describe('homepage projects grid', () => { + beforeEach(() => { + cy.visit('/') + }) + + it('renders the heading and four project cards', () => { + cy.get('[data-cy="projects"]').within(() => { + cy.contains('h2', 'Projects').should('be.visible') + cy.get('[data-cy="project-card"]').should('have.length', 4) + cy.contains('h3', 'Chaburot').should('be.visible') + cy.contains('group learning sessions').should('be.visible') + cy.contains('h3', 'Pilzno Work Inspired').should('be.visible') + cy.contains('healthy relationship to work').should('be.visible') + cy.contains('h3', 'Shul').should('be.visible') + cy.contains('Pilzno Beis Dovid').should('be.visible') + cy.contains('h3', 'New Building').should('be.visible') + cy.contains('Beit Shemesh municipality').should('be.visible') + }) + }) +})