test media navigation

This commit is contained in:
Yisroel Baum 2026-05-24 20:55:32 +03:00
parent 356725ceeb
commit 5d52f368ea
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -12,6 +12,19 @@ describe('homepage hero', () => {
})
})
it('opens the Torah Media page from the header navigation', () => {
cy.contains('header a', 'Torah Media').click()
cy.location('pathname').should('eq', '/media')
cy.get('header').within(() => {
cy.contains('Torah Media').should('be.visible')
cy.contains('About').should('be.visible')
cy.contains('Contact').should('be.visible')
cy.contains('Donate').should('be.visible')
})
cy.contains('h1', 'Torah Media').should('be.visible')
})
it('renders the hero headline with italic emphasis', () => {
cy.get('[data-cy="hero"]').within(() => {
cy.contains('upgrade our lives').should('be.visible')