Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring
BorderControl
's unit tests (#54155)
* Refactoring `BorderControl`'s unit tests This patch migrates uses of `fireEvent` in `BorderControl` to `testing-library/user-event`, where possible; there is one remaining usage that isn't currently supported by `userEvent`. * Updating failing tests – user error Was running the wrong tests locally * Replacing `user.clear` with a text selection range Calling `user.clear` was necessary to prevent `user.type` from adding to an existing input value. However, by providing a selection range to `user.type` we can avoid that call entirely. * Updating CHANGELOG.md
- Loading branch information
1 parent
031d05d
commit e2237b8
Showing
2 changed files
with
75 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters