This commit is contained in:
Philipp Kühn 2021-04-11 18:34:38 +02:00
parent ec61a37558
commit 703afe91c0

View File

@ -153,7 +153,7 @@ context('/demos/Nodes/CodeBlock', () => {
})
})
it.only('removes the code block when pressing backspace, even with blank lines', () => {
it.only('removes the code block when pressing backspace, even with blank lines', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.clearContent()
@ -167,4 +167,19 @@ context('/demos/Nodes/CodeBlock', () => {
.should('not.exist')
})
})
it.only('removes the code block when pressing backspace, even at start of document', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.clearContent()
cy.get('.ProseMirror pre')
.should('not.exist')
cy.get('.ProseMirror')
.type('``` A{leftArrow}{backspace}')
cy.get('.ProseMirror pre')
.should('not.exist')
})
})
})