Skip to content
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

Add unit tests for useConstrainedTabbing #47427

Open
afercia opened this issue Jan 25, 2023 · 0 comments · May be fixed by #48736
Open

Add unit tests for useConstrainedTabbing #47427

afercia opened this issue Jan 25, 2023 · 0 comments · May be fixed by #48736
Assignees
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.

Comments

@afercia
Copy link
Contributor

afercia commented Jan 25, 2023

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

@afercia afercia added [Type] Enhancement A suggestion for improvement. [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Jan 25, 2023
@afercia afercia self-assigned this Mar 3, 2023
@afercia afercia linked a pull request Mar 3, 2023 that will close this issue
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant