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