add basic text align extension

This commit is contained in:
Philipp Kühn
2020-10-23 15:23:40 +02:00
parent ecadf7ea0a
commit 5976d6083c
7 changed files with 134 additions and 30 deletions

View File

@@ -0,0 +1,18 @@
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')
})
})