remove focus from tests
This commit is contained in:
@@ -5,7 +5,6 @@ context('/examples/markdown-shortcuts', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.focus()
|
||||
editor.clearContent()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/blockquote', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/bold', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/code', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/code-block', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -5,7 +5,6 @@ context('/api/extensions/hard-break', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.focus()
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/heading', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -5,7 +5,6 @@ context('/api/extensions/history', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.focus()
|
||||
editor.setContent('<p>Mistake</p>')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/italic', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -5,7 +5,6 @@ context('/api/extensions/paragraph', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.focus()
|
||||
editor.clearContent()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/strike', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,7 +6,6 @@ context('/api/extensions/underline', () => {
|
||||
beforeEach(() => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
editor.setContent('<p>Example Text</p>')
|
||||
editor.focus()
|
||||
editor.selectAll()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user