Skip to content

Commit

Permalink
test(cypress): Fix initial content undo test
Browse files Browse the repository at this point in the history
Undo button should be disabled after initial content got loaded and only
get enabled after typing something.

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Jun 19, 2024
1 parent 8b413f9 commit a837f07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/e2e/initial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,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

0 comments on commit a837f07

Please sign in to comment.