test footer social links
This commit is contained in:
parent
1ce408cdb6
commit
7b8d09a312
1 changed files with 25 additions and 0 deletions
|
|
@ -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', () => {
|
it('navigates footer links without reloading the app', () => {
|
||||||
const footerNavigationMarker = 'client-navigation'
|
const footerNavigationMarker = 'client-navigation'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue