From ba17ef60118c4cc91456a7ea05ee1f1bcd8381ce Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 19 Aug 2020 18:20:03 +0200 Subject: [PATCH] fix read only test --- docs/src/demos/ReadOnly/index.spec.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/src/demos/ReadOnly/index.spec.js b/docs/src/demos/ReadOnly/index.spec.js index 9ccac0e6..95ca4fb1 100644 --- a/docs/src/demos/ReadOnly/index.spec.js +++ b/docs/src/demos/ReadOnly/index.spec.js @@ -4,17 +4,6 @@ context('read-only', () => { }) describe('editable', () => { - it('should be editable', () => { - cy.get('.ProseMirror').window().then(window => { - cy.get('#editable').check() - - const { editor } = window - editor.insertText('Edited: ') - - cy.get('.ProseMirror p:first').should('contain', 'Edited: ') - }) - }) - it('should be read-only', () => { cy.get('.ProseMirror').window().then(window => { cy.get('#editable').uncheck() @@ -26,5 +15,15 @@ context('read-only', () => { }) }) + it('should be editable', () => { + cy.get('.ProseMirror').window().then(window => { + cy.get('#editable').check() + + const { editor } = window + editor.insertText('Edited: ') + + cy.get('.ProseMirror p:first').should('contain', 'Edited: ') + }) + }) }) }) \ No newline at end of file