Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Nov 27, 2023
1 parent 74d3489 commit b76a288
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e/cypress/e2e/preset-commonmark/input.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,12 @@ describe('input:', () => {
cy.isMarkdown('The lunatic is `on the grass`\n')
})
})

it('undo input rule when press backspace', () => {
cy.get('.editor').type('The lunatic is *on the grass*')
cy.get('.editor').get('em').should('have.text', 'on the grass')
cy.get('.editor').type('{backspace}')
cy.isMarkdown('The lunatic is \\*on the grass\\*\n')
})
})
})

0 comments on commit b76a288

Please sign in to comment.