Files
tiptap/demos/src/GuideContent/ExportHTML/Vue/index.spec.js
Philipp Kühn 2d129459ca fix tests
2021-08-26 14:07:37 +02:00

20 lines
458 B
JavaScript

context('/src/GuideContent/ExportHTML/Vue/', () => {
before(() => {
cy.visit('/src/GuideContent/ExportHTML/Vue/')
})
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
})
})
it('should return html', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
const html = editor.getHTML()
expect(html).to.equal('<p>Example Text</p>')
})
})
})