add async to missing tests
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user