test footer navigation
This commit is contained in:
parent
93af219c90
commit
09b97b88ea
1 changed files with 26 additions and 0 deletions
|
|
@ -572,4 +572,30 @@ describe('homepage get involved and footer', () => {
|
|||
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')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue