add before method again

This commit is contained in:
Hans Pagel
2020-09-11 17:51:57 +02:00
parent 464d3665db
commit a3466f1add
13 changed files with 52 additions and 13 deletions

View File

@@ -1,10 +1,13 @@
context('/examples/markdown-shortcuts', () => {
beforeEach(() => {
before(() => {
cy.visit('/examples/markdown-shortcuts')
})
beforeEach((done) => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.clearContent()
done()
})
})