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

@@ -3,27 +3,25 @@ context('/examples/read-only', () => {
cy.visit('/examples/read-only')
})
describe('editable', () => {
it.skip('should be read-only', () => {
cy.get('.ProseMirror').window().then(window => {
cy.get('#editable').uncheck()
it.skip('should be read-only', () => {
cy.get('.ProseMirror').window().then(window => {
cy.get('#editable').uncheck()
const { editor } = window
editor.insertText('Edited: ')
const { editor } = window
editor.insertText('Edited: ')
cy.get('.ProseMirror p:first').should('not.contain', 'Edited: ')
})
cy.get('.ProseMirror p:first').should('not.contain', 'Edited: ')
})
})
it.skip('should be editable', () => {
cy.get('.ProseMirror').window().then(window => {
cy.get('#editable').check()
it.skip('should be editable', () => {
cy.get('.ProseMirror').window().then(window => {
cy.get('#editable').check()
const { editor } = window
editor.insertText('Edited: ')
const { editor } = window
editor.insertText('Edited: ')
cy.get('.ProseMirror p:first').should('contain', 'Edited: ')
})
cy.get('.ProseMirror p:first').should('contain', 'Edited: ')
})
})
})