From a24e33350c0704d7611f8301f688df0d1b2ecc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 28 May 2021 15:35:05 +0200 Subject: [PATCH] test: fix text align tests --- docs/src/demos/Extensions/TextAlign/index.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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', () => {