context('insertHTML', () => { before(() => { cy.visit('/demos/Examples/Default/Vue') }) it('returns true for the insertHTML command', () => { cy.get('.ProseMirror').then(([{ editor }]) => { editor.commands.setContent('

Example Text

') const command = editor.commands.insertHTML('

Cindy Lauper

') expect(command).to.be.eq(true) }) }) it('appends the content when using the insertHTML command', () => { cy.get('.ProseMirror').then(([{ editor }]) => { editor.commands.setContent('

Example Text

') editor.commands.insertHTML('

Cindy Lauper

') expect(editor.getHTML()).to.be.eq('

Example Text

Cindy Lauper

') }) }) })