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})