fix tests

This commit is contained in:
Philipp Kühn
2021-01-21 17:40:50 +01:00
parent 41fcef8867
commit 223ffaab1e
19 changed files with 21 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ context('/api/nodes/blockquote', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})
@@ -39,7 +39,7 @@ context('/api/nodes/blockquote', () => {
it('the button should wrap all nodes in one blockquote', () => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p><p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
cy.get('.demo__preview button:first')

View File

@@ -6,7 +6,7 @@ context('/api/nodes/bullet-list', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})

View File

@@ -6,7 +6,7 @@ context('/api/nodes/code-block', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})

View File

@@ -6,7 +6,7 @@ context('/api/nodes/heading', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})

View File

@@ -6,7 +6,7 @@ context('/api/nodes/image', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})

View File

@@ -6,7 +6,7 @@ context('/api/nodes/ordered-list', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})

View File

@@ -6,7 +6,7 @@ context('/api/nodes/task-list', () => {
beforeEach(() => {
cy.get('.ProseMirror').then(([{ editor }]) => {
editor.commands.setContent('<p>Example Text</p>')
editor.commands.selectAll()
cy.get('.ProseMirror').type('{selectall}')
})
})