fix tests
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user