diff --git a/docs/src/demos/Extensions/Text/index.spec.js b/docs/src/demos/Extensions/Text/index.spec.js index 907f9b74..d7824d26 100644 --- a/docs/src/demos/Extensions/Text/index.spec.js +++ b/docs/src/demos/Extensions/Text/index.spec.js @@ -1,5 +1,18 @@ -context('/api/extensions/document', () => { +context('/api/extensions/text', () => { before(() => { - cy.visit('/api/extensions/document') + cy.visit('/api/extensions/text') + }) + + beforeEach(() => { + cy.get('.ProseMirror').then(([{ editor }]) => { + editor.clearContent() + }) + }) + + it('text should be wrapped in a paragraph by default', () => { + cy.get('.ProseMirror') + .type('Example Text') + .find('p') + .should('contain', 'Example Text') }) }) \ No newline at end of file