test projects grid renders

This commit is contained in:
Yisroel Baum 2026-05-16 22:00:37 +03:00
parent c4c1ccf316
commit 39bd4cc5f5
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

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