Update preview.spec.js

pull/465/head
Jonathan 2 years ago committed by GitHub
parent 0d3bac24f7
commit 4f607df759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ describe('Preview', () => {
it('can show a preview of markdown text', () => { it('can show a preview of markdown text', () => {
cy.get('.EasyMDEContainer').should('be.visible'); 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. // Enter markdown text.
cy.get('.EasyMDEContainer .CodeMirror').type('# My Big Title'); cy.get('.EasyMDEContainer .CodeMirror').type('# My Big Title');
@ -25,7 +25,7 @@ describe('Preview', () => {
cy.previewOn(); cy.previewOn();
// Check preview window for rendered markdown. // Check preview window for rendered markdown.
cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '<h1 id="my-big-title">My Big Title</h1>'); cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '<h1 id="my-big-title">My Big Title</h1>');
cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '<p>This is some <strong>important</strong> text!</p>'); cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '<p>This is some <strong>important</strong> text!</p>');
}); });
}); });

Loading…
Cancel
Save