try to fix the tests
This commit is contained in:
@@ -11,11 +11,13 @@ context('/api/extensions/blockquote', () => {
|
|||||||
|
|
||||||
describe('blockquote', () => {
|
describe('blockquote', () => {
|
||||||
it('the button should make the selected line a blockquote', () => {
|
it('the button should make the selected line a blockquote', () => {
|
||||||
|
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')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('the button should toggle the blockquote', () => {
|
it('the button should toggle the blockquote', () => {
|
||||||
|
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('.demo__preview button:first').click({ force: true })
|
cy.get('.demo__preview button:first').click({ force: true })
|
||||||
@@ -28,6 +30,7 @@ context('/api/extensions/blockquote', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('the keyboard shortcut should toggle the blockquote', () => {
|
it('the keyboard shortcut should toggle the blockquote', () => {
|
||||||
|
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('{meta}{shift}9', {force: true})
|
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
|
||||||
|
|||||||
Reference in New Issue
Block a user