fix shortcuts

This commit is contained in:
Philipp Kühn
2020-09-11 22:02:51 +02:00
parent 66841f2fe2
commit 23ce5bc044
5 changed files with 13 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ context('/api/extensions/hard-break', () => {
it('the alternative keyboard shortcut should add a line break', () => {
cy.get('.ProseMirror br').should('not.exist')
cy.get('.ProseMirror').type('{meta}{enter}', { force: true })
cy.get('.ProseMirror').trigger('keydown', { metaKey: true, keyCode: 13 })
cy.get('.ProseMirror br').should('exist')
})
})