2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-06-28 05:31:06 -06:00

18 lines
627 B
JavaScript
Raw Permalink Normal View History

2022-01-14 22:27:43 +01:00
/// <reference types="cypress" />
describe('Default editor', () => {
beforeEach(() => {
2022-01-17 00:04:18 +01:00
cy.visit(__dirname + '/index.html');
2022-01-14 22:27:43 +01:00
});
2022-01-17 00:04:18 +01:00
it('loads the editor with default settings', () => {
2022-01-14 22:27:43 +01:00
cy.get('.EasyMDEContainer').should('be.visible');
cy.get('#textarea').should('not.be.visible');
cy.get('.EasyMDEContainer .editor-toolbar').should('be.visible');
cy.get('.EasyMDEContainer .CodeMirror').should('be.visible');
cy.get('.EasyMDEContainer .editor-preview').should('not.be.visible');
cy.get('.EasyMDEContainer .editor-statusbar').should('be.visible');
});
});