test numbered demo titles

This commit is contained in:
Yisroel Baum 2026-05-27 21:42:25 +03:00
parent 3a707bb9d6
commit d9a3040040
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 15 additions and 14 deletions

View file

@ -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.',

View file

@ -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')