test sponsor strip renders

This commit is contained in:
Yisroel Baum 2026-05-16 21:59:05 +03:00
parent 46b05e6724
commit f490535457
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -121,3 +121,30 @@ describe('homepage testimonials carousel', () => {
})
})
})
describe('homepage sponsor strip', () => {
beforeEach(() => {
cy.visit('/')
})
it('renders the heading and all seven partner logos', () => {
cy.get('[data-cy="sponsors"]').within(() => {
cy.contains('h2', 'Organizations Rabbi Gerzi has Worked With')
.should('be.visible')
cy.get('[data-cy="sponsor-logo"]').should('have.length', 7)
const expectedAlts = [
'SHARE',
'U of Israel',
'Mayberg Foundation',
'JLE UK',
'Yeshivat Reishit',
'Aish HaTorah',
'Yeshivat Lev HaTorah',
]
expectedAlts.forEach((altText) => {
cy.get(`[data-cy="sponsor-logo"][alt="${altText}"]`)
.should('be.visible')
})
})
})
})