Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Dec 30, 2024
1 parent d24bc93 commit 89abfe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/src/Examples/Default/Svelte/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ context('/src/Examples/Default/React/', () => {
cy.get('.tiptap').type('{enter}A second item{enter}A third item{selectall}')
cy.get('button').contains('Clear nodes').click()
cy.get('.tiptap ul').should('not.exist')
cy.get('.tiptap p').should('have.length', 3)
cy.get('.tiptap p').should('have.length', 4)
})

const buttonNodes = [
Expand Down Expand Up @@ -103,14 +103,14 @@ context('/src/Examples/Default/React/', () => {
it('should undo', () => {
cy.get('.tiptap').type('{selectall}{backspace}')
cy.get('button').contains('Undo').click()
cy.get('.tiptap').should('contain', 'Hello world')
cy.get('.tiptap').should('contain', 'Example Text')
})

it('should redo', () => {
cy.get('.tiptap').type('{selectall}{backspace}')
cy.get('button').contains('Undo').click()
cy.get('.tiptap').should('contain', 'Hello world')
cy.get('.tiptap').should('contain', 'Example Text')
cy.get('button').contains('Redo').click()
cy.get('.tiptap').should('not.contain', 'Hello world')
cy.get('.tiptap').should('not.contain', 'Example Text')
})
})

0 comments on commit 89abfe9

Please sign in to comment.