From ee5283e13e26dc02d5e0c3f6ba07e67f540b4b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 15 Mar 2021 14:29:32 +0100 Subject: [PATCH] fix readonly test --- docs/src/demos/Guide/Content/ReadOnly/index.spec.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/src/demos/Guide/Content/ReadOnly/index.spec.js b/docs/src/demos/Guide/Content/ReadOnly/index.spec.js index b6b74b49..16fb9d91 100644 --- a/docs/src/demos/Guide/Content/ReadOnly/index.spec.js +++ b/docs/src/demos/Guide/Content/ReadOnly/index.spec.js @@ -3,10 +3,9 @@ context('/demos/Guide/Content/ReadOnly', () => { cy.visit('/demos/Guide/Content/ReadOnly') }) - it.skip('should be read-only', () => { + it('should be read-only', () => { cy.get('.ProseMirror').then(([{ editor }]) => { - cy.get('#editable').uncheck() - + editor.setEditable(false) editor.commands.insertText('Edited: ') cy.get('.ProseMirror p:first').should('not.contain', 'Edited: ') @@ -15,8 +14,7 @@ context('/demos/Guide/Content/ReadOnly', () => { it('should be editable', () => { cy.get('.ProseMirror').then(([{ editor }]) => { - cy.get('#editable').check() - + editor.setEditable(true) editor.commands.insertText('Edited: ') cy.get('.ProseMirror p:first').should('contain', 'Edited: ')