From 786c86f4b89fbde0b5ef388c3fd6318f60d0816a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 17 Nov 2020 22:15:05 +0100 Subject: [PATCH] fix tests --- docs/src/demos/Marks/Highlight/index.spec.js | 6 +++--- docs/src/demos/Marks/Highlight/index.vue | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/demos/Marks/Highlight/index.spec.js b/docs/src/demos/Marks/Highlight/index.spec.js index 4a535fbae..6a8447ad7 100644 --- a/docs/src/demos/Marks/Highlight/index.spec.js +++ b/docs/src/demos/Marks/Highlight/index.spec.js @@ -24,7 +24,7 @@ context('/api/marks/highlight', () => { it('should highlight the text in a specific color', () => { cy.get('.ProseMirror').then(([{ editor }]) => { - editor.commands.highlight({ color: 'red' }) + editor.commands.toggleHighlight({ color: 'red' }) cy.get('.ProseMirror') .find('mark') @@ -39,7 +39,7 @@ context('/api/marks/highlight', () => { .chain() .setContent('

Example Text

') .selectAll() - .highlight({ color: 'rgb(255, 0, 0)' }) + .toggleHighlight({ color: 'rgb(255, 0, 0)' }) .run() cy.get('.ProseMirror') @@ -54,7 +54,7 @@ context('/api/marks/highlight', () => { .chain() .setContent('

Example Text

') .selectAll() - .highlight({ color: 'rgb(255, 0, 0)' }) + .toggleHighlight({ color: 'rgb(255, 0, 0)' }) .run() cy.get('.ProseMirror') diff --git a/docs/src/demos/Marks/Highlight/index.vue b/docs/src/demos/Marks/Highlight/index.vue index 51df5e8fb..aa45ff178 100644 --- a/docs/src/demos/Marks/Highlight/index.vue +++ b/docs/src/demos/Marks/Highlight/index.vue @@ -7,7 +7,7 @@ highlight (any) - - - - -