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,11 +1,14 @@
context('/api/extensions/code', () => {
beforeEach(() => {
before(() => {
cy.visit('/api/extensions/code')
})
beforeEach((done) => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.setContent('<p>Example Text</p>')
editor.selectAll()
done()
})
})