try to fix the tests

This commit is contained in:
Hans Pagel
2020-09-11 11:27:53 +02:00
parent 960be0ec04
commit 0104bf6b34

View File

@@ -11,11 +11,13 @@ context('/api/extensions/blockquote', () => {
describe('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('.ProseMirror').contains('blockquote', 'Example Text')
})
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('.ProseMirror').contains('blockquote', 'Example Text')
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', () => {
cy.get('.ProseMirror blockquote').should('not.exist')
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})
cy.get('.ProseMirror').contains('blockquote', 'Example Text')
cy.get('.ProseMirror').type('{meta}{shift}9', {force: true})