subscript: fix broken test

This commit is contained in:
Hans Pagel
2021-06-15 00:16:03 +02:00
parent 123f2067e5
commit b4fc7a4d0a

View File

@@ -12,7 +12,7 @@ context('/demos/Marks/Subscript', () => {
it('should transform inline style to sub tags', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p><span style="vertical-align: middle">Example Text</span></p>')
editor.commands.setContent('<p><span style="vertical-align: sub">Example Text</span></p>')
expect(editor.getHTML()).to.eq('<p><sub>Example Text</sub></p>')
})
})