simplify media deletion

This commit is contained in:
Yisroel Baum 2026-06-02 17:12:44 +03:00
parent 247433bc60
commit 01434a9b2d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 34 additions and 15 deletions

View file

@ -117,10 +117,12 @@ describe('media page sets', () => {
.should('have.css', 'text-align', 'center')
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
.as('pdfLink')
.should('be.visible')
.and('have.attr', 'target', '_blank')
cy.get('@pdfLink')
.and('have.attr', 'href')
.and('include', '/storage/element-pdfs/baderech.pdf')
.and('have.attr', 'target', '_blank')
cy.contains('[data-cy="child-element-link"]', introductionAudioTitle)
.as('introductionAudioLink')
.should('have.attr', 'href', '/element/8')