fix tests

This commit is contained in:
Philipp Kühn
2021-08-12 10:36:27 +02:00
parent 68029b0fbb
commit 7a9ba85ba1

View File

@@ -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()