refactoring

This commit is contained in:
Philipp Kühn
2020-09-11 22:26:53 +02:00
parent cc9425fc07
commit f5dca8defb

View File

@@ -18,7 +18,7 @@ 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').type('{shift}{enter}', { force: true })
cy.get('.ProseMirror').trigger('keydown', { metaKey: true, shiftKey: true, key: 'Enter' })
cy.get('.ProseMirror br').should('exist')
})