Merge branch 'fix/home-cypress-header'

This commit is contained in:
Yisroel Baum 2026-05-26 20:57:13 +03:00
commit a317f24976
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -4,7 +4,7 @@ describe('homepage hero', () => {
}) })
it('renders the header navigation', () => { it('renders the header navigation', () => {
cy.get('header').within(() => { cy.get('header.site-header').within(() => {
cy.contains('Torah Media').should('be.visible') cy.contains('Torah Media').should('be.visible')
cy.contains('About').should('be.visible') cy.contains('About').should('be.visible')
cy.contains('Contact').should('be.visible') cy.contains('Contact').should('be.visible')
@ -13,10 +13,10 @@ describe('homepage hero', () => {
}) })
it('opens the Torah Media page from the header navigation', () => { it('opens the Torah Media page from the header navigation', () => {
cy.contains('header a', 'Torah Media').click() cy.contains('header.site-header a', 'Torah Media').click()
cy.location('pathname').should('eq', '/media') cy.location('pathname').should('eq', '/media')
cy.get('header').within(() => { cy.get('header.site-header').within(() => {
cy.contains('Torah Media').should('be.visible') cy.contains('Torah Media').should('be.visible')
cy.contains('About').should('be.visible') cy.contains('About').should('be.visible')
cy.contains('Contact').should('be.visible') cy.contains('Contact').should('be.visible')