Skip to content
Merged
Prev Previous commit
Next Next commit
test(cypress): Fix initial content undo test
Undo button should be disabled after initial content got loaded and only
get enabled after typing something.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- authored and backportbot[bot] committed Jun 25, 2024
commit 5a03c9c75838806211f9b842e967717f82eb6901
7 changes: 4 additions & 3 deletions cypress/e2e/initial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ describe('Test state loading of documents', function() {
.find('h2').should('contain', 'Hello world')

cy.getMenu().should('be.visible')
cy.getActionEntry('undo').should('be.visible').click()
cy.getActionEntry('undo').should('be.disabled')

cy.getContent()
.should('contain', 'Hello world')
.find('h2').should('contain', 'Hello world')
.type('New content')
cy.getActionEntry('undo').should('not.be.disabled')
})
})

Expand Down