diff --git a/cypress/integration/1-default-editor/preview.spec.js b/cypress/integration/1-default-editor/preview.spec.js index e437bbe..5e1abcc 100644 --- a/cypress/integration/1-default-editor/preview.spec.js +++ b/cypress/integration/1-default-editor/preview.spec.js @@ -7,7 +7,7 @@ describe('Preview', () => { it('can show a preview of markdown text', () => { cy.get('.EasyMDEContainer').should('be.visible'); - cy.get('.EasyMDEContainer .editor-preview').should('not.be.visible'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('not.be.visible'); // Enter markdown text. cy.get('.EasyMDEContainer .CodeMirror').type('# My Big Title'); @@ -25,7 +25,7 @@ describe('Preview', () => { cy.previewOn(); // Check preview window for rendered markdown. - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '
This is some important text!
'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', 'This is some important text!
'); }); });