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/bold', () => {
beforeEach(() => {
before(() => {
cy.visit('/api/extensions/bold')
})
beforeEach((done) => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.setContent('<p>Example Text</p>')
editor.selectAll()
done()
})
})
@@ -34,6 +37,7 @@ context('/api/extensions/bold', () => {
cy.get('.ProseMirror')
.type('{meta}b', { force: true })
.should('not.exist')
cy.get('.ProseMirror strong').should('not.exist')
})