add markdown shortcut tests to the bold extension

This commit is contained in:
Hans Pagel
2020-09-10 12:40:55 +02:00
parent 6f6ca74fcb
commit 12116a65ec

View File

@@ -29,5 +29,17 @@ context('/api/extensions/bold', () => {
cy.get('.ProseMirror').type('{meta}b', {force: true}).type('{meta}b', {force: true}) cy.get('.ProseMirror').type('{meta}b', {force: true}).type('{meta}b', {force: true})
cy.get('.ProseMirror strong').should('not.exist') cy.get('.ProseMirror strong').should('not.exist')
}) })
it('should make a bold text from the default markdown shortcut', () => {
cy.get('.ProseMirror')
.type('**Bold**', {force: true})
.contains('strong', 'Bold')
})
it('should make a bold text from the alternative markdown shortcut', () => {
cy.get('.ProseMirror')
.type('__Bold__', {force: true})
.contains('strong', 'Bold')
})
}) })
}) })