test introduction rich text

This commit is contained in:
Yisroel Baum 2026-05-27 21:47:07 +03:00
parent c794fda074
commit e9fa31138b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 75 additions and 1 deletions

View file

@ -92,7 +92,21 @@ describe('media page sets', () => {
cy.location('pathname').should('eq', '/element/2')
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-rich-text"]')
.should('contain.text', 'What is Baderech HaAvoda?')
.and(
'contain.text',
'Why We Need a Path of Spiritual Practice',
)
.and(
'contain.text',
"A 'Baderech HaAvoda' is a way of living",
)
.and('contain.text', 'Direction')
.and('contain.text', 'How do I grow?')
.and('contain.text', 'The Challenge of Our Generation')
.and('contain.text', 'So many are Hashkafikly homeless')
.and('contain.text', 'the life we were created for.')
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
cy.get('[data-cy="element-pdf-link"]').should('not.exist')
})