fix tests
This commit is contained in:
@@ -10,6 +10,9 @@ context('/demos/Extensions/History', () => {
|
|||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.should('contain', 'Mistake')
|
.should('contain', 'Mistake')
|
||||||
|
|
||||||
|
cy.get('button:first')
|
||||||
|
.should('not.have.attr', 'disabled')
|
||||||
|
|
||||||
cy.get('button:first')
|
cy.get('button:first')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
@@ -68,12 +71,18 @@ context('/demos/Extensions/History', () => {
|
|||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.should('contain', 'Mistake')
|
.should('contain', 'Mistake')
|
||||||
|
|
||||||
|
cy.get('button:first')
|
||||||
|
.should('not.have.attr', 'disabled')
|
||||||
|
|
||||||
cy.get('button:first')
|
cy.get('button:first')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.should('not.contain', 'Mistake')
|
.should('not.contain', 'Mistake')
|
||||||
|
|
||||||
|
cy.get('button:first')
|
||||||
|
.should('have.attr', 'disabled')
|
||||||
|
|
||||||
cy.get('button:nth-child(2)')
|
cy.get('button:nth-child(2)')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
@@ -102,6 +111,9 @@ context('/demos/Extensions/History', () => {
|
|||||||
cy.get('button:nth-child(2)')
|
cy.get('button:nth-child(2)')
|
||||||
.should('have.attr', 'disabled')
|
.should('have.attr', 'disabled')
|
||||||
|
|
||||||
|
cy.get('button:first')
|
||||||
|
.should('not.have.attr', 'disabled')
|
||||||
|
|
||||||
cy.get('button:first')
|
cy.get('button:first')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user