add bullet list markdown shortcut tests
This commit is contained in:
@@ -9,4 +9,25 @@ context('/api/extensions/bullet-list', () => {
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
it('should make a bullet list from different markdown shortcuts', () => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.clearContent()
|
||||
})
|
||||
|
||||
cy.get('.ProseMirror')
|
||||
.type('* List Item 1{enter}+ List Item 2{enter}- List Item 3')
|
||||
|
||||
cy.get('.ProseMirror')
|
||||
.find('li:nth-child(1)')
|
||||
.should('contain', 'List Item 1')
|
||||
|
||||
cy.get('.ProseMirror')
|
||||
.find('li:nth-child(2)')
|
||||
.should('contain', 'List Item 2')
|
||||
|
||||
cy.get('.ProseMirror')
|
||||
.find('li:nth-child(3)')
|
||||
.should('contain', 'List Item 3')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user