test storage media seeds

This commit is contained in:
Yisroel Baum 2026-06-02 17:08:54 +03:00
parent 1934a6b94f
commit 247433bc60
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 17 additions and 46 deletions

View file

@ -47,7 +47,7 @@ describe('media page sets', () => {
cy.get('[data-cy="element-icon"]')
.should('be.visible')
.and('have.attr', 'src')
.and('include', '/assets/baderech-haavodah-icon.png')
.and('include', '/storage/element-icons/baderech-haavodah-icon.png')
cy.get('[data-cy="element-rich-text"]').should('not.exist')
cy.get('[data-cy="element-youtube-embed"]')
.should('not.exist')
@ -118,7 +118,8 @@ describe('media page sets', () => {
cy.get('[data-cy="element-youtube-embed"]').should('not.exist')
cy.contains('[data-cy="element-pdf-link"]', 'View PDF')
.should('be.visible')
.and('have.attr', 'href', '/assets/pdfs/baderech.pdf')
.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')