Merge pull request #13 from ueberdosis/feature/make-blockquotes-wrappable

make blockquotes wrappable
This commit is contained in:
Philipp Kühn
2020-09-27 09:30:11 +02:00
committed by GitHub
5 changed files with 49 additions and 13 deletions

View File

@@ -22,6 +22,20 @@ context('/api/extensions/blockquote', () => {
.should('contain', 'Example Text')
})
it('the button should wrap all nodes in a blockquote', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.setContent('<p>Example Text</p><p>Example Text</p>')
editor.selectAll()
})
cy.get('.demo__preview button:first')
.click()
cy.get('.ProseMirror')
.find('blockquote')
.should('have.length', 1)
})
it('the button should toggle the blockquote', () => {
cy.get('.ProseMirror blockquote')
.should('not.exist')