fix tests

This commit is contained in:
Philipp Kühn
2020-11-13 12:33:25 +01:00
parent e548181455
commit 2cf8137def
25 changed files with 103 additions and 103 deletions

View File

@@ -5,7 +5,7 @@ context('/examples/export-html-or-json', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.setContent('<p>Example Text</p>')
editor.commands.setContent('<p>Example Text</p>')
})
})

View File

@@ -5,7 +5,7 @@ context('/examples/markdown-shortcuts', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.clearContent()
editor.commands.clearContent()
})
})

View File

@@ -7,7 +7,7 @@ context('/examples/read-only', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
cy.get('#editable').uncheck()
editor.insertText('Edited: ')
editor.commands.insertText('Edited: ')
cy.get('.ProseMirror p:first').should('not.contain', 'Edited: ')
})
@@ -17,7 +17,7 @@ context('/examples/read-only', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
cy.get('#editable').check()
editor.insertText('Edited: ')
editor.commands.insertText('Edited: ')
cy.get('.ProseMirror p:first').should('contain', 'Edited: ')
})