From 0104bf6b3461ad24665dcc9b2981dd2fc91d2319 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 11 Sep 2020 11:27:53 +0200 Subject: [PATCH] try to fix the tests --- docs/src/demos/Extensions/Blockquote/index.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/demos/Extensions/Blockquote/index.spec.js b/docs/src/demos/Extensions/Blockquote/index.spec.js index d7c4d1d2..0e77f053 100644 --- a/docs/src/demos/Extensions/Blockquote/index.spec.js +++ b/docs/src/demos/Extensions/Blockquote/index.spec.js @@ -11,11 +11,13 @@ context('/api/extensions/blockquote', () => { describe('blockquote', () => { it('the button should make the selected line a blockquote', () => { + cy.get('.ProseMirror blockquote').should('not.exist') cy.get('.demo__preview button:first').click({ force: true }) cy.get('.ProseMirror').contains('blockquote', 'Example Text') }) it('the button should toggle the blockquote', () => { + cy.get('.ProseMirror blockquote').should('not.exist') cy.get('.demo__preview button:first').click({ force: true }) cy.get('.ProseMirror').contains('blockquote', 'Example Text') cy.get('.demo__preview button:first').click({ force: true }) @@ -28,6 +30,7 @@ context('/api/extensions/blockquote', () => { }) it('the keyboard shortcut should toggle the blockquote', () => { + cy.get('.ProseMirror blockquote').should('not.exist') cy.get('.ProseMirror').type('{meta}{shift}9', {force: true}) cy.get('.ProseMirror').contains('blockquote', 'Example Text') cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})