Skip to content

Commit

Permalink
fix: use Delete to clear input instead of Backspace (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Apr 28, 2021
1 parent a6a1c61 commit 94e9241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expect-puppeteer/src/matchers/toFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function toFill(instance, selector, value, options) {
toMatchElementOptions,
)
await selectAll(element)
await element.press('Backspace')
await element.press('Delete')
await element.type(value, {
delay,
})
Expand Down

0 comments on commit 94e9241

Please sign in to comment.