diff --git a/docs/src/demos/Extensions/HardBreak/index.spec.js b/docs/src/demos/Extensions/HardBreak/index.spec.js index d68baf3e..43439c24 100644 --- a/docs/src/demos/Extensions/HardBreak/index.spec.js +++ b/docs/src/demos/Extensions/HardBreak/index.spec.js @@ -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('

Example Text

') + done() }) }) diff --git a/docs/src/demos/Extensions/History/index.spec.js b/docs/src/demos/Extensions/History/index.spec.js index c3aef532..98600bb6 100644 --- a/docs/src/demos/Extensions/History/index.spec.js +++ b/docs/src/demos/Extensions/History/index.spec.js @@ -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('

Mistake

') + done() }) })