add code extension demo with tests

This commit is contained in:
Hans Pagel
2020-09-02 15:26:46 +02:00
parent bdbf6e7f61
commit 819052912d
7 changed files with 82 additions and 51 deletions

View File

@@ -13,9 +13,6 @@ context('/api/extensions/italic', () => {
it('should make the selected text italic', () => {
cy.get('.demo__preview button:first').click({ force: true })
cy.get('.ProseMirror').contains('em', 'Example Text')
cy.get('.demo__preview button:first').click({ force: true })
cy.get('.ProseMirror em').should('not.exist')
})
it('should toggle the selected text italic', () => {