-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tabs: overhaul unit tests #66140
Tabs: overhaul unit tests #66140
Conversation
808d5a8
to
cca0489
Compare
Flaky tests detected in 7cd9c71. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12073525069
|
6f037ce
to
7cd9c71
Compare
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 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.
Thank you for reorganizing them, I dig the new organization 👏
Tests look great and are more readable and thorough than before.
Took me a while to go through them but I appreciate the tons of improvements 💯
🚀
7cd9c71
to
a90b9c5
Compare
Thank you for reviewing this, @tyxla — especially given the size of the PR 🙏 |
* Rewrite unit tests * Extract waitForComponentToBeInitializedWithSelectedTab utility function * Use describe.each to run same test against controlled / uncontrolled components * Re-enable tabs when testing disabled tabs * Mock isRTL and test RTL keyboard navigation * CHANGELOG * Remove CHANGELOG entry * Fix typo --- Co-authored-by: ciampo <[email protected]> Co-authored-by: tyxla <[email protected]>
* Rewrite unit tests * Extract waitForComponentToBeInitializedWithSelectedTab utility function * Use describe.each to run same test against controlled / uncontrolled components * Re-enable tabs when testing disabled tabs * Mock isRTL and test RTL keyboard navigation * CHANGELOG * Remove CHANGELOG entry * Fix typo --- Co-authored-by: ciampo <[email protected]> Co-authored-by: tyxla <[email protected]>
What?
Follow-up to #66097
Rewrite the suite of tests for the
Tabs
componentWhy?
The previous suite of tests was incomplete, flaky, and included many repetitions, and inaccurate descriptions.
The new suite:
How?
Testing Instructions
This PR doesn't include any runtime changes.
(apologies for the size of the PR, but I couldn't really find a good way to split it into smaller pieces)
Screenshots or screencast