test sponsor strip renders
This commit is contained in:
parent
46b05e6724
commit
f490535457
1 changed files with 27 additions and 0 deletions
|
|
@ -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')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue