npm @testing-library/user-event 14.0.0-beta.1
v14.0.0-beta.1

latest releases: 14.5.2, 14.5.1, 14.5.0...
2 years ago

14.0.0-beta.1 (2021-11-28)

⚠ BREAKING CHANGES

  • upload: init parameter has been removed from userEvent.upload.
  • APIs always return a Promise.
  • paste: The userEvent.paste API has new parameters.
  • {ctrl}, {del}, {esc} no longer describe a key. Use {Control}, {Delete}, {Escape} instead.
  • {alt}, {ctrl}, {meta}, {shift} no longer imply not releasing the key. Use {Alt>}, {Control>}, {Meta>}, {Shift>} instead.
  • init parameter has been removed from these APIs:
    • userEvent.click
    • userEvent.dblClick
    • userEvent.tripleClick
    • userEvent.hover
    • userEvent.unhover
    • userEvent.selectOptions
    • userEvent.deselectOptions
  • Behavior for special key descriptor {selectall} has been removed.
  • Support for keyCode property on keyboard events has been removed.
  • clear: An error is thrown when calling userEvent.clear on an element which is not editable.
  • clear: An error is thrown when event handlers prevent userEvent.clear from focussing/selecting content.
  • tab: The focusTrap option has been removed from userEvent.tab().
  • pointer: userEvent.type does no longer move the cursor
    if used with skipClick=false and without initialSelectionStart.
  • The implementation of pointer related APIs was replaced.
    This might break tests relying on unintended side-effects of the previous implementation.
  • Support for node 10 was removed as it reached its end-of-life.

Features

Bug Fixes

Miscellaneous Chores

Don't miss a new user-event release

NewReleases is sending notifications on new releases.