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