test discover path section renders

This commit is contained in:
Yisroel Baum 2026-05-16 21:50:33 +03:00
parent 4d8e0902ba
commit 8c74eb707e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -30,3 +30,22 @@ describe('homepage hero', () => {
.and('match', /Rabbi Yehoshua Gerzi/i)
})
})
describe('homepage discover path section', () => {
beforeEach(() => {
cy.visit('/')
})
it('renders the heading and body copy', () => {
cy.get('[data-cy="discover-path"]').within(() => {
cy.contains('h2', 'Discover a Path to a Holistically Engaged Life')
.should('be.visible')
cy.contains('Rabbi Yehoshua Gerzi has dedicated his life')
.should('be.visible')
cy.contains('Healthy, Integrated and Balanced Torah Living')
.should('be.visible')
cy.contains('Ramat Beit Shemesh').should('be.visible')
cy.contains('Pilzno Institute of Higher Learning').should('be.visible')
})
})
})