diff --git a/docs/src/demos/Examples/Default/Vue/index.spec.js b/docs/src/demos/Examples/Default/Vue/index.spec.js index 8580f40a..b50ebe01 100644 --- a/docs/src/demos/Examples/Default/Vue/index.spec.js +++ b/docs/src/demos/Examples/Default/Vue/index.spec.js @@ -19,4 +19,18 @@ context('/demos/Examples/Default/Vue', () => { .find('p') .should('contain', 'Example Text') }) + + it.only('keeps line breaks from pasted plain text', () => { + const text = `Paragraph 1 +Paragraph 1 + +Paragraph 2` + const html = '
Paragraph 1
Paragraph 1
Paragraph 2
' + + cy.get('.ProseMirror').paste({ pastePayload: text, pasteType: 'text/plain' }) + + cy.get('.ProseMirror').then(([{ editor }]) => { + expect(editor.getHTML()).to.eq(html) + }) + }) })