From 34affa7bbbf6a1d76c37f68a789df24d1242e2ae Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 12 Oct 2020 17:19:19 +0200 Subject: [PATCH] fix tests --- docs/src/demos/Extensions/Heading/index.spec.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/src/demos/Extensions/Heading/index.spec.js b/docs/src/demos/Extensions/Heading/index.spec.js index edb14b07..7fd1e3a3 100644 --- a/docs/src/demos/Extensions/Heading/index.spec.js +++ b/docs/src/demos/Extensions/Heading/index.spec.js @@ -14,9 +14,6 @@ context('/api/extensions/heading', () => { '

Example Text

', '

Example Text

', '

Example Text

', - '

Example Text

', - '
Example Text
', - '
Example Text
', ] headings.forEach(html => { @@ -28,9 +25,9 @@ context('/api/extensions/heading', () => { }) }) - it('should omit invalid headings', () => { + it('should omit disabled heading levels', () => { cy.get('.ProseMirror').then(([{ editor }]) => { - editor.setContent('Example Text') + editor.setContent('

Example Text

') expect(editor.html()).to.eq('

Example Text

') }) })