test element child list
This commit is contained in:
parent
d950fe55dd
commit
aa746fe3f0
4 changed files with 137 additions and 15 deletions
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue