add arrows to the typography extension

This commit is contained in:
Hans Pagel
2020-11-05 22:50:07 +01:00
parent 44865a2ea7
commit 7a7e517577
3 changed files with 21 additions and 1 deletions

View File

@@ -44,4 +44,16 @@ context('/api/extensions/typography', () => {
.type("'closeSingleQuote'")
.should('contain', 'closeSingleQuote')
})
it('should make a leftwards arrow', () => {
cy.get('.ProseMirror')
.type('<- leftwardsArrow')
.should('contain', '← leftwardsArrow')
})
it('should make a rightwards arrow', () => {
cy.get('.ProseMirror')
.type('-> rightwardsArrow')
.should('contain', '→ rightwardsArrow')
})
})