diff --git a/test/e2e/media.cy.js b/test/e2e/media.cy.js index e561391..a5a883a 100644 --- a/test/e2e/media.cy.js +++ b/test/e2e/media.cy.js @@ -25,18 +25,18 @@ describe('Media', function () { cy.get('.media__transcript-body-inline').should('not.be.visible'); cy.get('button.media__transcript-btn-inline').should('be.visible'); cy.get('button.media__transcript-btn-inline').should('contain', mediaComponent._transcript.inlineTranscriptButton).click(); - cy.get('.media__transcript-body-inline-inner').should('be.visible').should('contain', mediaComponent._transcript.inlineTranscriptBody); + cy.get('.media__transcript-body-inline-inner').should('be.visible').should('contain', stripHtml(mediaComponent._transcript.inlineTranscriptBody)); cy.get('button.media__transcript-btn-inline').should('contain', mediaComponent._transcript.inlineTranscriptCloseButton).click(); cy.get('.media__transcript-body-inline').should('not.be.visible'); } else { - cy.get('button.media__transcript-btn-inline').should('not.be.visible'); + cy.get('button.media__transcript-btn-inline').should('not.exist'); } if (mediaComponent._transcript._externalTranscript) { cy.get('button.media__transcript-btn-external').should('be.visible') cy.get('button.media__transcript-btn-external').should('contain', mediaComponent._transcript.transcriptLinkButton); } else { - cy.get('button.media__transcript-btn-external').should('not.be.visible') + cy.get('button.media__transcript-btn-external').should('not.exist') } };