Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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. |
7a3eb9c to
2f68e34
Compare
Part of #82928.
What?
Backports #58968 (61aa8f5), "Components: Try fixing some flaky
CompositeandTabstests", towp/6.5. It waits for rendering to finish (await sleep()) before pressing Tab, and waits for focus to move (waitFor) before checking it, in two tests:With "spread" state › Supports currentIdin the legacyCompositetests.Tabs › Controlled mode › When selectOnMove is false › should apply focus without automatically changing the selected tab.Why?
The
Compositetest is flaky on this branch. It failed theUnit Tests / JavaScriptjob on #84588 (https://github.com/WordPress/gutenberg/actions/runs/39291570105/job/118193254896): after pressing Tab, focus stayed on Item 1 instead of moving to Item 2. That PR only changes theTabstests, and the same job passed on its previous run.This is the same timing problem #84588 fixes in a different
Tabstest. Trunk fixed both tests in #58968, merged on 2024-02-14, just afterwp/6.5branched.wp/6.6already has this fix, andwp/6.7and later fixed the underlying cause by upgrading@ariakit/test, so no other branch needs it.How?
A straight cherry-pick of the trunk commit. It changes only
packages/components/src/composite/legacy/test/index.tsxandpackages/components/src/tabs/test/index.tsx.Testing Instructions
Check that the
Unit Tests / JavaScriptjob on this pull request passes.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code