add async to missing tests

This commit is contained in:
Hans Pagel
2020-09-11 17:32:03 +02:00
parent 7e3d6fbe83
commit 7aa1d33cc4
2 changed files with 4 additions and 2 deletions

View File

@@ -3,10 +3,11 @@ context('/api/extensions/hard-break', () => {
cy.visit('/api/extensions/hard-break')
})
beforeEach(() => {
beforeEach((done) => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.setContent('<p>Example Text</p>')
done()
})
})

View File

@@ -3,10 +3,11 @@ context('/api/extensions/history', () => {
cy.visit('/api/extensions/history')
})
beforeEach(() => {
beforeEach((done) => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.setContent('<p>Mistake</p>')
done()
})
})