diff --git a/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js b/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js index fb74790e..99223f00 100644 --- a/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js +++ b/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js @@ -65,21 +65,21 @@ context('/examples/markdown-shortcuts', () => { .should('contain', 'const foo = bar') }) - it.skip('should create a bullet list from asteriks', () => { + it('should create a bullet list from asteriks', () => { cy.get('.ProseMirror') .type('* foobar') .find('ul') .should('contain', 'foobar') }) - it.skip('should create a bullet list from dashes', () => { + it('should create a bullet list from dashes', () => { cy.get('.ProseMirror') .type('- foobar') .find('ul') .should('contain', 'foobar') }) - it.skip('should create a bullet list from pluses', () => { + it('should create a bullet list from pluses', () => { cy.get('.ProseMirror') .type('+ foobar') .find('ul') diff --git a/docs/src/demos/Extensions/BulletList/index.spec.js b/docs/src/demos/Extensions/BulletList/index.spec.js index c4bed2ca..f6cebc8a 100644 --- a/docs/src/demos/Extensions/BulletList/index.spec.js +++ b/docs/src/demos/Extensions/BulletList/index.spec.js @@ -9,4 +9,25 @@ context('/api/extensions/bullet-list', () => { editor.selectAll() }) }) + + it('should make a bullet list from different markdown shortcuts', () => { + cy.get('.ProseMirror').then(([{ editor }]) => { + editor.clearContent() + }) + + cy.get('.ProseMirror') + .type('* List Item 1{enter}+ List Item 2{enter}- List Item 3') + + cy.get('.ProseMirror') + .find('li:nth-child(1)') + .should('contain', 'List Item 1') + + cy.get('.ProseMirror') + .find('li:nth-child(2)') + .should('contain', 'List Item 2') + + cy.get('.ProseMirror') + .find('li:nth-child(3)') + .should('contain', 'List Item 3') + }) }) \ No newline at end of file