From 7b8d09a312f77f133acee1585d073d1afaf8fc6b Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 14 Jun 2026 22:07:30 +0300 Subject: [PATCH] test footer social links --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 527f743..59020d5 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -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'