really fix tests

This commit is contained in:
Hans Pagel
2020-09-11 15:57:33 +02:00
parent 2e67d64d68
commit 1b414ab33c
20 changed files with 501 additions and 514 deletions

View File

@@ -1,16 +1,14 @@
context('/examples/focus', () => {
beforeEach(() => {
before(() => {
cy.visit('/examples/focus')
})
describe('focus class', () => {
it('should have class', () => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.focus('start')
it('should have class', () => {
cy.get('.ProseMirror').window().then(window => {
const { editor } = window
editor.focus('start')
cy.get('.ProseMirror p:first').should('have.class', 'has-focus')
})
cy.get('.ProseMirror p:first').should('have.class', 'has-focus')
})
})
})