Skip to content

Commit

Permalink
test: demonstrate #583
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Mar 24, 2021
1 parent 8136e36 commit 4bc1531
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/__tests__/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -1399,3 +1399,12 @@ test('move selection with arrows', () => {
selectionStart: 1,
})
})

test('overwrite selection with same value', () => {
const {element} = setup(`<input value="1"/>`)
element.select()

userEvent.type(element, '11123')

expect(element).toHaveValue('11123')
})

0 comments on commit 4bc1531

Please sign in to comment.