async beforeeach
This commit is contained in:
@@ -3,11 +3,11 @@ context('/api/extensions/paragraph', () => {
|
||||
cy.visit('/api/extensions/paragraph')
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
beforeEach((done) => {
|
||||
cy.get('.ProseMirror').window().then(window => {
|
||||
const { editor } = window
|
||||
editor.clearContent()
|
||||
cy.wait(10)
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user