Files
tiptap/docs/src/demos/Extensions/Text/index.spec.js
2020-09-23 23:38:11 +02:00

19 lines
400 B
JavaScript

context('/api/extensions/text', () => {
before(() => {
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')
})
})