test child descriptions
This commit is contained in:
parent
ca04884e88
commit
90328d98c7
1 changed files with 12 additions and 0 deletions
|
|
@ -43,9 +43,21 @@ describe('media page sets', () => {
|
||||||
cy.contains('h1', 'Baderech HaAvodah').should('be.visible')
|
cy.contains('h1', 'Baderech HaAvodah').should('be.visible')
|
||||||
cy.get('[data-cy="child-element-list"]').should('be.visible')
|
cy.get('[data-cy="child-element-list"]').should('be.visible')
|
||||||
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
|
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
|
||||||
|
.as('avodahFoundationsLink')
|
||||||
.should('have.attr', 'href', '/element/2')
|
.should('have.attr', 'href', '/element/2')
|
||||||
|
cy.get('@avodahFoundationsLink')
|
||||||
|
.should(
|
||||||
|
'contain.text',
|
||||||
|
'Core foundations for building a steady avodah practice.',
|
||||||
|
)
|
||||||
cy.contains('[data-cy="child-element-link"]', 'Daily Practice')
|
cy.contains('[data-cy="child-element-link"]', 'Daily Practice')
|
||||||
|
.as('dailyPracticeLink')
|
||||||
.should('have.attr', 'href', '/element/3')
|
.should('have.attr', 'href', '/element/3')
|
||||||
|
cy.get('@dailyPracticeLink')
|
||||||
|
.should(
|
||||||
|
'contain.text',
|
||||||
|
'Practical steps for consistent daily growth.',
|
||||||
|
)
|
||||||
|
|
||||||
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
|
cy.contains('[data-cy="child-element-link"]', 'Avodah Foundations')
|
||||||
.click()
|
.click()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue