Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into main
This commit is contained in:
@@ -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>')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user