From d9a304004001c46eabfe458cb8e757725c8d464f Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Wed, 27 May 2026 21:42:25 +0300 Subject: [PATCH] test numbered demo titles --- backend/tests/Feature/DemoSeedDataTest.php | 12 ++++++------ frontend/rabbi_gerzi/cypress/e2e/media.cy.ts | 17 +++++++++-------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/backend/tests/Feature/DemoSeedDataTest.php b/backend/tests/Feature/DemoSeedDataTest.php index 0777c4a..0ad2968 100644 --- a/backend/tests/Feature/DemoSeedDataTest.php +++ b/backend/tests/Feature/DemoSeedDataTest.php @@ -29,7 +29,7 @@ class DemoSeedDataTest extends TestCase $this->assertSame( [ [ - 'title' => 'Introduction', + 'title' => '1. Introduction', 'description' => 'Your beliefs influence your thinking, ' . 'and your thinking drives your choices. When you ' . 'nurture healthy beliefs - about yourself, about ' @@ -38,7 +38,7 @@ class DemoSeedDataTest extends TestCase . 'confidence, and hope.', ], [ - 'title' => 'Foundations', + 'title' => '2. Foundations', 'description' => 'Focal points for thriving in a chaotic ' . 'world. In this fast, complex era, you flourish ' . 'when you develop clarity, well-being, resilience, ' @@ -46,24 +46,24 @@ class DemoSeedDataTest extends TestCase . 'spiritual intention.', ], [ - 'title' => 'Divine Plan', + 'title' => '3. Divine Plan', 'description' => 'Understanding the unique greatness of ' . 'our generation and the call to remain hopeful, ' . 'optimistic, and resilient.', ], [ - 'title' => 'Architecture of the Soul', + 'title' => '4. Architecture of the Soul', 'description' => "Becoming a Baal Da'at - A Master of " . 'Inner Awareness', ], [ - 'title' => 'Arba Yesodot', + 'title' => '5. Arba Yesodot', 'description' => 'A structured approach to balanced ' . 'living: Physical & Financial Health, ' . 'Relationships, Wisdom and Guidance.', ], [ - 'title' => 'Fluid Integration', + 'title' => '6. Fluid Integration', 'description' => 'A series of practical exercises to ' . 'engender a shift in mindset, embed healthy ' . 'routines, positive life practices.', diff --git a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts index f3a03e1..bc14896 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/media.cy.ts @@ -55,7 +55,7 @@ describe('media page sets', () => { 'not.contain.text', 'Begin with a clear map for avodah growth.', ) - cy.contains('[data-cy="child-element-link"]', 'Introduction') + cy.contains('[data-cy="child-element-link"]', '1. Introduction') .as('introductionLink') .should('have.attr', 'href', '/element/2') cy.get('@introductionLink') @@ -63,33 +63,34 @@ describe('media page sets', () => { 'contain.text', 'Your beliefs influence your thinking, and your thinking drives', ) - cy.contains('[data-cy="child-element-link"]', 'Foundations') + cy.contains('[data-cy="child-element-link"]', '2. Foundations') .should( 'contain.text', 'Focal points for thriving in a chaotic world.', ) - cy.contains('[data-cy="child-element-link"]', 'Divine Plan') + cy.contains('[data-cy="child-element-link"]', '3. Divine Plan') .should( 'contain.text', 'Understanding the unique greatness of our generation', ) cy.contains( '[data-cy="child-element-link"]', - 'Architecture of the Soul', + '4. 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') + cy.contains('[data-cy="child-element-link"]', '5. Arba Yesodot') .should('contain.text', 'Physical & Financial Health') - cy.contains('[data-cy="child-element-link"]', 'Fluid Integration') + cy.contains('[data-cy="child-element-link"]', '6. Fluid Integration') .should('contain.text', 'engender a shift in mindset') .and('have.attr', 'href', '/element/7') - cy.contains('[data-cy="child-element-link"]', 'Introduction').click() + cy.contains('[data-cy="child-element-link"]', '1. Introduction') + .click() cy.location('pathname').should('eq', '/element/2') - cy.contains('h1', 'Introduction').should('be.visible') + cy.contains('h1', '1. Introduction').should('be.visible') cy.get('[data-cy="element-icon"]').should('not.exist') cy.get('[data-cy="element-rich-text"]').should('not.exist') cy.get('[data-cy="element-youtube-embed"]').should('not.exist')