test element pdf path

This commit is contained in:
Yisroel Baum 2026-05-27 20:15:51 +03:00
parent 2c79ab64ad
commit 6c6b3ad257
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 72 additions and 0 deletions

View file

@ -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')
})
})