fix shortcuts

This commit is contained in:
Philipp Kühn
2020-09-11 23:17:40 +02:00
parent c7af0b6782
commit 7afcb0250e
8 changed files with 38 additions and 20 deletions

View File

@@ -18,13 +18,13 @@ context('/api/extensions/hard-break', () => {
it('the default keyboard shortcut should add a line break', () => {
cy.get('.ProseMirror br').should('not.exist')
cy.get('.ProseMirror').trigger('keydown', { metaKey: true, shiftKey: true, key: 'Enter' })
cy.get('.ProseMirror').trigger('keydown', { shiftKey: true, key: 'Enter' })
cy.get('.ProseMirror br').should('exist')
})
it('the alternative keyboard shortcut should add a line break', () => {
cy.get('.ProseMirror br').should('not.exist')
cy.get('.ProseMirror').trigger('keydown', { metaKey: true, key: 'Enter' })
cy.get('.ProseMirror').trigger('keydown', { modKey: true, key: 'Enter' })
cy.get('.ProseMirror br').should('exist')
})
})