simplify media deletion
This commit is contained in:
parent
247433bc60
commit
01434a9b2d
4 changed files with 34 additions and 15 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue