From f49053545742cd2104d34c9cf08bd360709396e7 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 16 May 2026 21:59:05 +0300 Subject: [PATCH] test sponsor strip renders --- frontend/rabbi_gerzi/cypress/e2e/home.cy.ts | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 502cb5c..1da5a08 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -121,3 +121,30 @@ describe('homepage testimonials carousel', () => { }) }) }) + +describe('homepage sponsor strip', () => { + beforeEach(() => { + cy.visit('/') + }) + + it('renders the heading and all seven partner logos', () => { + cy.get('[data-cy="sponsors"]').within(() => { + cy.contains('h2', 'Organizations Rabbi Gerzi has Worked With') + .should('be.visible') + cy.get('[data-cy="sponsor-logo"]').should('have.length', 7) + const expectedAlts = [ + 'SHARE', + 'U of Israel', + 'Mayberg Foundation', + 'JLE UK', + 'Yeshivat Reishit', + 'Aish HaTorah', + 'Yeshivat Lev HaTorah', + ] + expectedAlts.forEach((altText) => { + cy.get(`[data-cy="sponsor-logo"][alt="${altText}"]`) + .should('be.visible') + }) + }) + }) +})