diff --git a/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js b/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js index 2f5c1204..be8c2ed0 100644 --- a/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js +++ b/docs/src/demos/Examples/MarkdownShortcuts/index.spec.js @@ -5,6 +5,7 @@ context('/examples/markdown-shortcuts', () => { beforeEach(() => { cy.get('.ProseMirror').then(([{ editor }]) => { + editor.focus() editor.clearContent() }) }) @@ -77,13 +78,13 @@ context('/examples/markdown-shortcuts', () => { it.skip('should create a ordered list', () => { cy.get('.ProseMirror') - .type('1. foobar', { force: true }) - .contains('ol', 'foobar') + .type('1. foobar', { force: true }) + .contains('ol', 'foobar') }) it.skip('should create a blockquote', () => { cy.get('.ProseMirror') - .type('> foobar', { force: true }) - .contains('blockquote', 'foobar') + .type('> foobar', { force: true }) + .contains('blockquote', 'foobar') }) }) \ No newline at end of file