From 195c06417e65af72a747dee2bc63ec887c05b97d Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 14 Jun 2026 22:18:08 +0300 Subject: [PATCH] test donate links --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 59020d5..e95938a 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -12,6 +12,16 @@ describe('homepage hero', () => { }) }) + it('links the navbar Donate item to Causematch', () => { + const donateHref = 'https://causematch.com/pilzno_donate' + + cy.contains('header.site-header a', 'Donate') + .should('be.visible') + .and('have.attr', 'href', donateHref) + .and('have.attr', 'target', '_blank') + .and('have.attr', 'rel', 'noopener') + }) + it('opens the Torah Media page from the header navigation', () => { cy.contains('header.site-header a', 'Torah Media').click() @@ -573,6 +583,16 @@ describe('homepage get involved and footer', () => { }) }) + it('links the footer Donate item to Causematch', () => { + const donateHref = 'https://causematch.com/pilzno_donate' + + cy.contains('[data-cy="footer"] a', 'Donate') + .should('be.visible') + .and('have.attr', 'href', donateHref) + .and('have.attr', 'target', '_blank') + .and('have.attr', 'rel', 'noopener') + }) + it('links footer social icons to the contact social pages', () => { const expectedSocialLinks = [ {