test numbered demo titles
This commit is contained in:
parent
3a707bb9d6
commit
d9a3040040
2 changed files with 15 additions and 14 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue