test element child list

This commit is contained in:
Yisroel Baum 2026-05-26 20:12:14 +03:00
parent d950fe55dd
commit aa746fe3f0
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 137 additions and 15 deletions

View file

@ -41,5 +41,15 @@ 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="child-element-list"]').should('be.visible')
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
.should('have.attr', 'href', '/element/2')
cy.contains('[data-cy="child-element-link"]', 'Daily Practice')
.should('have.attr', 'href', '/element/3')
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
.click()
cy.location('pathname').should('eq', '/element/2')
cy.contains('h1', 'Avodah Foundations').should('be.visible')
})
})