test element icons

This commit is contained in:
Yisroel Baum 2026-05-27 21:10:52 +03:00
parent c5ea3640b7
commit ac7af2463d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 80 additions and 0 deletions

View file

@ -41,6 +41,10 @@ describe('media page sets', () => {
cy.location('pathname').should('eq', '/element/1')
cy.get('[data-cy="element-page"]').should('be.visible')
cy.contains('h1', 'Baderech HaAvodah').should('be.visible')
cy.get('[data-cy="element-icon"]')
.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')
@ -82,6 +86,7 @@ describe('media page sets', () => {
.click()
cy.location('pathname').should('eq', '/element/2')
cy.contains('h1', 'Avodah Foundations').should('be.visible')
cy.get('[data-cy="element-icon"]').should('not.exist')
cy.get('[data-cy="element-rich-text"]')
.should(
'contain.text',