fix tests

This commit is contained in:
Hans Pagel
2020-10-12 17:19:19 +02:00
parent 597b2db742
commit 34affa7bbb

View File

@@ -14,9 +14,6 @@ context('/api/extensions/heading', () => {
'<h1>Example Text</h1>', '<h1>Example Text</h1>',
'<h2>Example Text</h2>', '<h2>Example Text</h2>',
'<h3>Example Text</h3>', '<h3>Example Text</h3>',
'<h4>Example Text</h4>',
'<h5>Example Text</h5>',
'<h6>Example Text</h6>',
] ]
headings.forEach(html => { headings.forEach(html => {
@@ -28,9 +25,9 @@ context('/api/extensions/heading', () => {
}) })
}) })
it('should omit invalid headings', () => { it('should omit disabled heading levels', () => {
cy.get('.ProseMirror').then(([{ editor }]) => { cy.get('.ProseMirror').then(([{ editor }]) => {
editor.setContent('<h7>Example Text</h7>') editor.setContent('<h4>Example Text</h4>')
expect(editor.html()).to.eq('<p>Example Text</p>') expect(editor.html()).to.eq('<p>Example Text</p>')
}) })
}) })