diff --git a/cypress/integration/share.spec.js b/cypress/integration/share.spec.js index d556a6ef041..74593427b15 100644 --- a/cypress/integration/share.spec.js +++ b/cypress/integration/share.spec.js @@ -138,6 +138,8 @@ describe('Open test.md in viewer', function() { cy.get('#editor-container').should('be.visible') cy.get('#editor .ProseMirror').should('contain', 'Hello world') cy.get('#editor .ProseMirror h2').should('contain', 'Hello world') + cy.get('.modal-header button.header-close').click() + cy.get('.modal-mask').should('not.exist') }) }) })