From d1efea2bd517387b2ff2c383f961aa1cf9b96c74 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Wed, 27 May 2026 21:38:36 +0300 Subject: [PATCH] test baderech demo cards --- frontend/rabbi_gerzi/cypress/e2e/media.cy.ts | 57 ++++++++++---------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts index c2894a4..90b437a 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts @@ -45,16 +45,9 @@ describe('media page sets', () => { .should('be.visible') .and('have.attr', 'src') .and('include', '/assets/baderech-haavodah-icon.png') - cy.get('[data-cy="element-rich-text"]').within(() => { - cy.contains('Begin with a clear map for avodah growth.') - .should('be.visible') - cy.contains('strong', 'Move steadily').should('be.visible') - }) + cy.get('[data-cy="element-rich-text"]').should('not.exist') cy.get('[data-cy="element-youtube-embed"]') - .should('be.visible') - .and('have.attr', 'src') - .and('include', 'https://www.youtube.com/embed/yHx-r4p6hHU') - .and('include', 'start=1') + .should('not.exist') cy.contains('[data-cy="element-pdf-link"]', 'View PDF') .should('be.visible') .and('have.attr', 'href', '/assets/pdfs/baderech.pdf') @@ -63,35 +56,45 @@ describe('media page sets', () => { cy.get('[data-cy="child-element-list"]') .should( 'not.contain.text', - 'Avodah foundations begin with honest awareness', + 'Begin with a clear map for avodah growth.', ) - cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations') - .as('avodahFoundationsLink') + cy.contains('[data-cy="child-element-link"]', 'Introduction') + .as('introductionLink') .should('have.attr', 'href', '/element/2') - cy.get('@avodahFoundationsLink') + cy.get('@introductionLink') .should( 'contain.text', - 'Core foundations for building a steady avodah practice.', + 'Your beliefs influence your thinking, and your thinking drives', ) - cy.contains('[data-cy="child-element-link"]', 'Daily Practice') - .as('dailyPracticeLink') - .should('have.attr', 'href', '/element/3') - cy.get('@dailyPracticeLink') + cy.contains('[data-cy="child-element-link"]', 'Foundations') .should( 'contain.text', - 'Practical steps for consistent daily growth.', + 'Focal points for thriving in a chaotic world.', ) + cy.contains('[data-cy="child-element-link"]', 'Divine Plan') + .should( + 'contain.text', + 'Understanding the unique greatness of our generation', + ) + cy.contains( + '[data-cy="child-element-link"]', + 'Architecture of the Soul', + ) + .should( + 'contain.text', + "Becoming a Baal Da'at - A Master of Inner Awareness", + ) + cy.contains('[data-cy="child-element-link"]', 'Arba Yesodot') + .should('contain.text', 'Physical & Financial Health') + cy.contains('[data-cy="child-element-link"]', 'Fluid Integration') + .should('contain.text', 'engender a shift in mindset') + .and('have.attr', 'href', '/element/7') - cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations') - .click() + cy.contains('[data-cy="child-element-link"]', 'Introduction').click() cy.location('pathname').should('eq', '/element/2') - cy.contains('h1', 'Avodah Foundations').should('be.visible') + cy.contains('h1', 'Introduction').should('be.visible') cy.get('[data-cy="element-icon"]').should('not.exist') - cy.get('[data-cy="element-rich-text"]') - .should( - 'contain.text', - 'Avodah foundations begin with honest awareness', - ) + cy.get('[data-cy="element-rich-text"]').should('not.exist') cy.get('[data-cy="element-youtube-embed"]').should('not.exist') cy.get('[data-cy="element-pdf-link"]').should('not.exist') })