test element pdf path
This commit is contained in:
parent
2c79ab64ad
commit
6c6b3ad257
6 changed files with 72 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ describe('media page sets', () => {
|
|||
.should('be.visible')
|
||||
cy.contains('strong', 'Move steadily').should('be.visible')
|
||||
})
|
||||
cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
|
||||
.should('be.visible')
|
||||
.and('have.attr', 'href', '/assets/pdfs/baderech.pdf')
|
||||
.and('have.attr', 'target', '_blank')
|
||||
cy.get('[data-cy="child-element-list"]').should('be.visible')
|
||||
cy.get('[data-cy="child-element-list"]')
|
||||
.should(
|
||||
|
|
@ -78,5 +82,6 @@ describe('media page sets', () => {
|
|||
'contain.text',
|
||||
'Avodah foundations begin with honest awareness',
|
||||
)
|
||||
cy.get('[data-cy="element-pdf-link"]').should('not.exist')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue