-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Components: Refactor withFocusReturn tests to RTL
#45012
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
Conversation
|
Size Change: 0 B Total Size: 1.27 MB ℹ️ View Unchanged
|
Mamaduka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4f35506 to
d9daf50
Compare
Sure thing! Actually, the |
|
Thanks again, @tyxla! |
Focusing the |
This actually makes a lot of sense and I agree with the sentiment. In that case, we'll need I've changed it in 24b2f4e to actually resemble a user click on the textarea, which consequently focuses it. |
What?
This PR refactors the
withFocusReturntests to fully use@testing-library/reactinstead ofreact-test-renderer.Part of #44780.
Why?
It is a part of the recent effort to use
@testing-library/reactas the primary testing library.How?
We're updating rendering to now be with RTL.
Testing Instructions
Verify tests still pass:
npm run test:unit packages/components/src/higher-order/with-focus-return/test/index.js