From 12116a65ec565f37f92e730a0a242ddacda7fe3c Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 10 Sep 2020 12:40:55 +0200 Subject: [PATCH] add markdown shortcut tests to the bold extension --- docs/src/demos/Extensions/Bold/index.spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/demos/Extensions/Bold/index.spec.js b/docs/src/demos/Extensions/Bold/index.spec.js index 8d54f47b..b80b0a33 100644 --- a/docs/src/demos/Extensions/Bold/index.spec.js +++ b/docs/src/demos/Extensions/Bold/index.spec.js @@ -29,5 +29,17 @@ context('/api/extensions/bold', () => { cy.get('.ProseMirror').type('{meta}b', {force: true}).type('{meta}b', {force: true}) cy.get('.ProseMirror strong').should('not.exist') }) + + it('should make a bold text from the default markdown shortcut', () => { + cy.get('.ProseMirror') + .type('**Bold**', {force: true}) + .contains('strong', 'Bold') + }) + + it('should make a bold text from the alternative markdown shortcut', () => { + cy.get('.ProseMirror') + .type('__Bold__', {force: true}) + .contains('strong', 'Bold') + }) }) }) \ No newline at end of file