test element youtube embed
This commit is contained in:
parent
ff58f23bb7
commit
c48312de00
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,11 @@ describe('media page sets', () => {
|
|||
.should('be.visible')
|
||||
cy.contains('strong', 'Move steadily').should('be.visible')
|
||||
})
|
||||
cy.get('[data-cy="element-youtube-embed"]')
|
||||
.should('be.visible')
|
||||
.and('have.attr', 'src')
|
||||
.and('include', 'https://www.youtube.com/embed/yHx-r4p6hHU')
|
||||
.and('include', 'start=1')
|
||||
cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
|
||||
.should('be.visible')
|
||||
.and('have.attr', 'href', '/assets/pdfs/baderech.pdf')
|
||||
|
|
@ -82,6 +87,7 @@ describe('media page sets', () => {
|
|||
'contain.text',
|
||||
'Avodah foundations begin with honest awareness',
|
||||
)
|
||||
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
|
||||
cy.get('[data-cy="element-pdf-link"]').should('not.exist')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue