test footer navigation

This commit is contained in:
Yisroel Baum 2026-06-14 21:58:35 +03:00
parent 93af219c90
commit 09b97b88ea
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -572,4 +572,30 @@ describe('homepage get involved and footer', () => {
cy.contains(/Rabbi Gerzi 2025/).should('be.visible') cy.contains(/Rabbi Gerzi 2025/).should('be.visible')
}) })
}) })
it('navigates footer links without reloading the app', () => {
const footerNavigationMarker = 'client-navigation'
cy.window().then((applicationWindow) => {
const markedWindow = applicationWindow as Window & {
footerNavigationMarker?: string
}
markedWindow.footerNavigationMarker = footerNavigationMarker
})
cy.contains('[data-cy="footer"] a', 'About').click()
cy.location('pathname').should('eq', '/about')
cy.window().then((applicationWindow) => {
const markedWindow = applicationWindow as Window & {
footerNavigationMarker?: string
}
expect(markedWindow.footerNavigationMarker).to.equal(
footerNavigationMarker,
)
})
cy.contains('h1', 'About Rabbi Gerzi').should('be.visible')
})
}) })