diff --git a/docs/src/demos/Extensions/History/index.spec.js b/docs/src/demos/Extensions/History/index.spec.js index e8f35871..79999b7f 100644 --- a/docs/src/demos/Extensions/History/index.spec.js +++ b/docs/src/demos/Extensions/History/index.spec.js @@ -10,6 +10,9 @@ context('/demos/Extensions/History', () => { cy.get('.ProseMirror') .should('contain', 'Mistake') + cy.get('button:first') + .should('not.have.attr', 'disabled') + cy.get('button:first') .click() @@ -68,12 +71,18 @@ context('/demos/Extensions/History', () => { cy.get('.ProseMirror') .should('contain', 'Mistake') + cy.get('button:first') + .should('not.have.attr', 'disabled') + cy.get('button:first') .click() cy.get('.ProseMirror') .should('not.contain', 'Mistake') + cy.get('button:first') + .should('have.attr', 'disabled') + cy.get('button:nth-child(2)') .click() @@ -102,6 +111,9 @@ context('/demos/Extensions/History', () => { cy.get('button:nth-child(2)') .should('have.attr', 'disabled') + cy.get('button:first') + .should('not.have.attr', 'disabled') + cy.get('button:first') .click()