-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Component: Extract getNodeText
to its own file and add unit tests
#69135
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
Component: Extract getNodeText
to its own file and add unit tests
#69135
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @sreeragdas, @oceantober. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Sorry for the delay, @im3dabasia!
The update looks good. Do you mind rebasing the PR and adding a changelog entry? Then we're good to merge.
4561b00
to
eb0b8c5
Compare
@Mamaduka , Thank you for the correction. c40ad98 . Looks good to ship now 🚀 Just saw this a grammatical error 'autocomple' -> 'autocomplete' 😅 . Should I push a fix for this? LMK what you think gutenberg/packages/components/CHANGELOG.md Lines 7 to 8 in eb0b8c5
|
No, that's okay. There's no need to fix old changelog entries. It's better to catch them on time 😄 |
…ordPress#69135) Unlinked contributors: sreeragdas, oceantober. Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: alexstine <alexstine@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org>
Related PR: #54902
Related Issue: #55495
What?
Closes: #55495
Extracts
getNodeText
into its own file, adds unit tests, and refactors unused code.Why?
The original implementation was merged quickly to address an accessibility issue (#47767). This PR improves maintainability by isolating the function, adding tests, and removing unnecessary code.
How?
getNodeText
to a separate file.Testing Instructions
Run the following command to execute unit tests for
getNodeText
:Screenshots or screencast