diff --git a/frontend/rabbi_gerzi/cypress/e2e/about.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/about.cy.ts index be249f8..5464354 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/about.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/about.cy.ts @@ -8,12 +8,12 @@ describe('about page', () => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') cy.contains('Contact').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') }) cy.get('[data-cy="about-hero"]').within(() => { cy.contains('h1', 'About Rabbi Gerzi').should('be.visible') - cy.contains('Healthy, Integrated and Balanced Torah living') + cy.contains('Integrated Torah life') .should('be.visible') cy.get('[data-cy="about-hero-image"]') .should('be.visible') @@ -121,7 +121,7 @@ describe('about page', () => { cy.get('[data-cy="footer"]').within(() => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') cy.contains('Contact').should('be.visible') cy.contains(/Rabbi Gerzi 2025/).should('be.visible') }) diff --git a/frontend/rabbi_gerzi/cypress/e2e/contact.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/contact.cy.ts index ad066b2..d76f080 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/contact.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/contact.cy.ts @@ -8,7 +8,7 @@ describe('contact page', () => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') cy.contains('Contact').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') }) cy.get('[data-cy="contact-hero"]').within(() => { @@ -111,7 +111,7 @@ describe('contact page', () => { cy.get('[data-cy="footer"]').within(() => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') cy.contains('Contact').should('be.visible') cy.contains(/Rabbi Gerzi 2025/).should('be.visible') }) diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index e95938a..ed77143 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -8,14 +8,14 @@ describe('homepage hero', () => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') cy.contains('Contact').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') }) }) - it('links the navbar Donate item to Causematch', () => { + it('links the navbar investment item to Causematch', () => { const donateHref = 'https://causematch.com/pilzno_donate' - cy.contains('header.site-header a', 'Donate') + cy.contains('header.site-header a', 'Invest in Pilzno') .should('be.visible') .and('have.attr', 'href', donateHref) .and('have.attr', 'target', '_blank') @@ -30,74 +30,45 @@ describe('homepage hero', () => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') cy.contains('Contact').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') }) cy.contains('h1', 'Torah Media').should('be.visible') }) - it('renders the hero headline with italic emphasis', () => { + it('renders the Rabbi Gerzi hero in Pilzno language', () => { cy.get('[data-cy="hero"]').within(() => { - cy.contains('upgrade our lives').should('be.visible') - cy.contains('em', 'healthy').should('be.visible') - cy.contains('em', 'integrated').should('be.visible') - cy.contains('em', 'balanced').should('be.visible') - cy.contains('Torah existence').should('be.visible') - cy.contains('Rabbi Yehoshua Gerzi').should('be.visible') + cy.contains('PILZNO').should('be.visible') + cy.contains('RAMAT BET SHEMESH').should('be.visible') + cy.contains('h1', 'Rabbi Yehoshua Gerzi').should('be.visible') + cy.contains('Create Geula').should('be.visible') + cy.contains('Elevate Life').should('be.visible') + cy.contains('Geula mindset').should('be.visible') + cy.contains('Integrated Torah life').should('be.visible') }) }) - it('renders the rabbi portrait image', () => { - cy.get('[data-cy="hero-portrait"]') + it('renders the rabbi portrait image in the brand hero', () => { + cy.get('[data-cy="hero-rabbi-portrait"]') .should('be.visible') .and('have.attr', 'alt') .and('match', /Rabbi Yehoshua Gerzi/i) }) - it('lets the rabbi portrait rise above the circular frame', () => { - cy.get('[data-cy="hero-portrait"]').then( - (portraitElements) => { - const portraitImage = portraitElements[0] - const frameElement = portraitImage.parentElement + it('uses Pilzno brand colors and typography tokens', () => { + cy.get('[data-cy="hero"]').then((heroElements) => { + const heroStyle = getComputedStyle(heroElements[0]) + const documentStyle = getComputedStyle(document.documentElement) - if (frameElement === null) { - throw new Error('Portrait frame is missing') - } - - const frameStyle = getComputedStyle(frameElement) - - expect(frameStyle.overflowX).to.equal('visible') - expect(frameStyle.overflowY).to.equal('visible') - expect(portraitImage.getBoundingClientRect().top).to.be.lessThan( - frameElement.getBoundingClientRect().top, - ) - }, - ) - }) - - it('extends the circular background to the portrait base edges', () => { - cy.get('[data-cy="hero-portrait"]').then( - (portraitElements) => { - const portraitImage = portraitElements[0] - const frameElement = portraitImage.parentElement - - if (frameElement === null) { - throw new Error('Portrait frame is missing') - } - - const portraitBounds = portraitImage.getBoundingClientRect() - const frameBounds = frameElement.getBoundingClientRect() - const backgroundStyle = getComputedStyle(frameElement, '::before') - const backgroundWidth = Number.parseFloat(backgroundStyle.width) - const backgroundLeft = - frameBounds.left + (frameBounds.width - backgroundWidth) / 2 - const backgroundRight = backgroundLeft + backgroundWidth - - expect(backgroundStyle.content).to.not.equal('none') - expect(backgroundWidth).to.be.closeTo(portraitBounds.width, 1) - expect(backgroundLeft).to.be.closeTo(portraitBounds.left, 1) - expect(backgroundRight).to.be.closeTo(portraitBounds.right, 1) - }, - ) + expect(documentStyle.getPropertyValue('--color-brand-purple').trim()) + .to.equal('#2a1f3d') + expect(documentStyle.getPropertyValue('--color-gold').trim()) + .to.equal('#c9a84c') + expect(documentStyle.getPropertyValue('--font-display').trim()) + .to.contain('Cormorant Garamond') + expect(documentStyle.getPropertyValue('--font-ui').trim()) + .to.contain('Jost') + expect(heroStyle.backgroundColor).to.equal('rgb(42, 31, 61)') + }) }) }) @@ -112,8 +83,9 @@ describe('homepage discover path section', () => { .should('be.visible') cy.contains('Rabbi Yehoshua Gerzi has dedicated his life') .should('be.visible') - cy.contains('Healthy, Integrated and Balanced Torah Living') + cy.contains('Integrated Torah life') .should('be.visible') + cy.contains('Geula mindset').should('be.visible') cy.contains('Ramat Beit Shemesh').should('be.visible') cy.contains('Pilzno Institute of Higher Learning').should('be.visible') }) @@ -577,16 +549,16 @@ describe('homepage get involved and footer', () => { cy.get('[data-cy="footer"]').within(() => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') cy.contains('Contact').should('be.visible') cy.contains(/Rabbi Gerzi 2025/).should('be.visible') }) }) - it('links the footer Donate item to Causematch', () => { + it('links the footer investment item to Causematch', () => { const donateHref = 'https://causematch.com/pilzno_donate' - cy.contains('[data-cy="footer"] a', 'Donate') + cy.contains('[data-cy="footer"] a', 'Invest in Pilzno') .should('be.visible') .and('have.attr', 'href', donateHref) .and('have.attr', 'target', '_blank') diff --git a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts index 805be28..3f884db 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts @@ -9,7 +9,7 @@ describe('media page sets', () => { cy.contains('Torah Media').should('be.visible') cy.contains('About').should('be.visible') cy.contains('Contact').should('be.visible') - cy.contains('Donate').should('be.visible') + cy.contains('Invest in Pilzno').should('be.visible') }) cy.contains('h1', 'Torah Media').should('be.visible') cy.get('[data-cy="media-set-grid"]').should('be.visible')