diff --git a/docs/src/demos/Extensions/TextAlign/index.spec.js b/docs/src/demos/Extensions/TextAlign/index.spec.js index e7303270..65f40f8e 100644 --- a/docs/src/demos/Extensions/TextAlign/index.spec.js +++ b/docs/src/demos/Extensions/TextAlign/index.spec.js @@ -9,10 +9,10 @@ context('/demos/Extensions/TextAlign', () => { }) }) - it('should parse left align text correctly', () => { + it('should parse left align text correctly (and not render)', () => { cy.get('.ProseMirror').then(([{ editor }]) => { editor.commands.setContent('

Example Text

') - expect(editor.getHTML()).to.eq('

Example Text

') + expect(editor.getHTML()).to.eq('

Example Text

') }) }) @@ -43,7 +43,7 @@ context('/demos/Extensions/TextAlign', () => { cy.get('.ProseMirror') .find('p') - .should('have.css', 'text-align', 'left') + .should('not.have.css', 'text-align', 'left') }) it('aligns the text center on the 2nd button', () => { @@ -79,14 +79,14 @@ context('/demos/Extensions/TextAlign', () => { cy.get('.ProseMirror') .find('p') - .should('have.css', 'text-align', 'left') + .should('not.have.css', 'text-align', 'left') }) it('aligns the text left when pressing the keyboard shortcut', () => { cy.get('.ProseMirror') .trigger('keydown', { modKey: true, shiftKey: true, key: 'l' }) .find('p') - .should('have.css', 'text-align', 'left') + .should('not.have.css', 'text-align', 'left') }) it('aligns the text center when pressing the keyboard shortcut', () => {