test element youtube embed

This commit is contained in:
Yisroel Baum 2026-05-27 20:38:56 +03:00
parent ff58f23bb7
commit c48312de00
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -46,6 +46,11 @@ describe('media page sets', () => {
.should('be.visible') .should('be.visible')
cy.contains('strong', 'Move steadily').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') cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
.should('be.visible') .should('be.visible')
.and('have.attr', 'href', '/assets/pdfs/baderech.pdf') .and('have.attr', 'href', '/assets/pdfs/baderech.pdf')
@ -82,6 +87,7 @@ describe('media page sets', () => {
'contain.text', 'contain.text',
'Avodah foundations begin with honest awareness', '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') cy.get('[data-cy="element-pdf-link"]').should('not.exist')
}) })
}) })