Add unit tests for useConstrainedTabbing #47427
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Enhancement
A suggestion for improvement.
Description
Related: #47426
Related: #34836
#34836 refactored
useConstrainedTabbing
but missed to add unit test for the specific use case the refactoring was meant to cover, see #34681.There should be also some test for the basic functionality of the hook.
It would be great to add a few tests, also noting that some of the other hooks do have tests. I tried in the context of #47426 but my knowledge is limited and I have no idea how to make the hook actually run in a test (it uses
useRefEffecta
internally). any help would be greatly appreciated.Step-by-step reproduction instructions
See the hook doesn't have unit tests.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: