get rid of before method

This commit is contained in:
Hans Pagel
2020-09-11 17:42:41 +02:00
parent 1aa613e4eb
commit dc83868b53
13 changed files with 15 additions and 52 deletions

View File

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