test footer social links

This commit is contained in:
Yisroel Baum 2026-06-14 22:07:30 +03:00
parent 1ce408cdb6
commit 7b8d09a312
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -573,6 +573,31 @@ describe('homepage get involved and footer', () => {
})
})
it('links footer social icons to the contact social pages', () => {
const expectedSocialLinks = [
{
label: 'YouTube',
href: 'https://www.youtube.com/@rabbigerzi',
},
{
label: 'Spotify',
href:
'https://open.spotify.com/show/' +
'49H1X9A7KZWAnnIbcoQXQR?si=6253691f23be44ad',
},
]
cy.get('[data-cy="footer"]').within(() => {
expectedSocialLinks.forEach((expectedSocialLink) => {
cy.get(`a[aria-label="${expectedSocialLink.label}"]`)
.should('be.visible')
.and('have.attr', 'href', expectedSocialLink.href)
.and('have.attr', 'target', '_blank')
.and('have.attr', 'rel', 'noopener')
})
})
})
it('navigates footer links without reloading the app', () => {
const footerNavigationMarker = 'client-navigation'