-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: rewrite userEvent.clear
API
#779
Conversation
BREAKING CHANGE: An error is thrown when calling `userEvent.clear` on an element which is not editable. BREAKING CHANGE: An error is thrown when event handlers prevent `userEvent.clear` from focussing/selecting content.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f6ae1a0:
|
Codecov Report
@@ Coverage Diff @@
## alpha #779 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 65 65
Lines 1385 1403 +18
Branches 546 549 +3
=========================================
+ Hits 1385 1403 +18
Continue to review full report at Codecov.
|
🎉 This PR is included in version 14.0.0-alpha.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: An error is thrown when calling `userEvent.clear` on an element which is not editable. BREAKING CHANGE: An error is thrown when event handlers prevent `userEvent.clear` from focussing/selecting content.
BREAKING CHANGE: An error is thrown when calling
userEvent.clear
on an element which is not editable.BREAKING CHANGE: An error is thrown when event handlers prevent
userEvent.clear
from focussing/selecting content.What:
Rewrite implementation of
userEvent.clear()
.Add support for contenteditable.
Add support for UI input when selection stretches over multiple elements.
Why:
Closes #778
How:
deleteContentBackward
Checklist:
Additional informations
This PR unblocks the removing of
{selectall}
which is the only descriptor not translating to a key.