fix tests
This commit is contained in:
@@ -20,6 +20,8 @@ context('/api/extensions/blockquote', () => {
|
|||||||
cy.get('.ProseMirror blockquote').should('not.exist')
|
cy.get('.ProseMirror blockquote').should('not.exist')
|
||||||
cy.get('.demo__preview button:first').click({ force: true })
|
cy.get('.demo__preview button:first').click({ force: true })
|
||||||
cy.get('.ProseMirror').contains('blockquote', 'Example Text')
|
cy.get('.ProseMirror').contains('blockquote', 'Example Text')
|
||||||
|
|
||||||
|
cy.get('.ProseMirror').type('{selectall}', {force: true})
|
||||||
cy.get('.demo__preview button:first').click({ force: true })
|
cy.get('.demo__preview button:first').click({ force: true })
|
||||||
cy.get('.ProseMirror blockquote').should('not.exist')
|
cy.get('.ProseMirror blockquote').should('not.exist')
|
||||||
})
|
})
|
||||||
@@ -33,6 +35,8 @@ context('/api/extensions/blockquote', () => {
|
|||||||
cy.get('.ProseMirror blockquote').should('not.exist')
|
cy.get('.ProseMirror blockquote').should('not.exist')
|
||||||
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
|
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
|
||||||
cy.get('.ProseMirror').contains('blockquote', 'Example Text')
|
cy.get('.ProseMirror').contains('blockquote', 'Example Text')
|
||||||
|
|
||||||
|
cy.get('.ProseMirror').type('{selectall}', {force: true})
|
||||||
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
|
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
|
||||||
cy.get('.ProseMirror blockquote').should('not.exist')
|
cy.get('.ProseMirror blockquote').should('not.exist')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ context('/api/extensions/code-block', () => {
|
|||||||
it('the button should toggle the code block', () => {
|
it('the button should toggle the code block', () => {
|
||||||
cy.get('.demo__preview button:first').click({ force: true })
|
cy.get('.demo__preview button:first').click({ force: true })
|
||||||
cy.get('.ProseMirror').contains('pre', 'Example Text')
|
cy.get('.ProseMirror').contains('pre', 'Example Text')
|
||||||
|
|
||||||
|
cy.get('.ProseMirror').type('{selectall}', {force: true})
|
||||||
cy.get('.demo__preview button:first').click({ force: true })
|
cy.get('.demo__preview button:first').click({ force: true })
|
||||||
cy.get('.ProseMirror pre').should('not.exist')
|
cy.get('.ProseMirror pre').should('not.exist')
|
||||||
})
|
})
|
||||||
@@ -30,6 +32,8 @@ context('/api/extensions/code-block', () => {
|
|||||||
it('the keyboard shortcut should toggle the code block', () => {
|
it('the keyboard shortcut should toggle the code block', () => {
|
||||||
cy.get('.ProseMirror').type('{control}{shift}\\', {force: true})
|
cy.get('.ProseMirror').type('{control}{shift}\\', {force: true})
|
||||||
cy.get('.ProseMirror').contains('pre', 'Example Text')
|
cy.get('.ProseMirror').contains('pre', 'Example Text')
|
||||||
|
|
||||||
|
cy.get('.ProseMirror').type('{selectall}', {force: true})
|
||||||
cy.get('.ProseMirror').type('{control}{shift}\\', {force: true})
|
cy.get('.ProseMirror').type('{control}{shift}\\', {force: true})
|
||||||
cy.get('.ProseMirror pre').should('not.exist')
|
cy.get('.ProseMirror pre').should('not.exist')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user