Skip to content

Commit

Permalink
fix(tests): fix tests for lists
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Feb 28, 2023
1 parent 3c07ca0 commit 02eec8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion demos/src/Nodes/OrderedList/React/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ context('/src/Nodes/OrderedList/React/', () => {

cy.get('.ProseMirror').type('2. List Item 1{enter}List Item 2')

cy.get('.ProseMirror').find('ol').should('have.attr', 'start', '2')
cy.get('.ProseMirror').find('li:nth-child(1)').should('contain', 'List Item 1')
cy.get('.ProseMirror').find('li:nth-child(2)').should('contain', 'List Item 2')
})

it('should remove the ordered list after pressing backspace', () => {
Expand Down
5 changes: 2 additions & 3 deletions demos/src/Nodes/OrderedList/Vue/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ context('/src/Nodes/OrderedList/Vue/', () => {
cy.get('.ProseMirror')
.type('2. List Item 1{enter}List Item 2')

cy.get('.ProseMirror')
.find('ol')
.should('have.attr', 'start', '2')
cy.get('.ProseMirror').find('li:nth-child(1)').should('contain', 'List Item 1')
cy.get('.ProseMirror').find('li:nth-child(2)').should('contain', 'List Item 2')
})

it('should remove the ordered list after pressing backspace', () => {
Expand Down

0 comments on commit 02eec8a

Please sign in to comment.