Repository navigation
Repair wp/6.6 branch Actions: Fix flaky site editor command palette e2e test - #83736
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. |
|
Size Change: 0 B Total Size: 1.73 MB ℹ️ View Unchanged
|
3ead89a to
d0549d1
Compare
d0549d1 to
2126cd1
Compare
2126cd1 to
2c9c64e
Compare
2c9c64e to
a586f39
Compare
a586f39 to
cfff0c6
Compare
cfff0c6 to
aa44bae
Compare
ntsekouras
left a comment
There was a problem hiding this comment.
LGTM, thanks! Same as trunk's #62454.
aa44bae to
f6c6c99
Compare
Part of #82784.
What?
Makes the "Open the command palette and navigate to a template" test in
test/e2e/specs/site-editor/command-center.spec.jslook for the level-1 heading inside the "Editor top bar" region, instead of anywhere on the page.Why?
After opening the "index" template, the test expects the page's level-1 heading to read "Index". It searched the whole page, so when a second level-1 heading was also present, Playwright's strict mode failed the assertion with "
getByRole('heading', { level: 1 })resolved to 2 elements". The template's title is shown in the document bar inside the editor top bar, so scoping the lookup there checks exactly what the test intends. On this stack it failed in 9 of 89 failed end-to-end runs since 2026-09-15, across many PRs (most recently #83727).Upstream
A straight cherry-pick of
b7368c0(#62454) fromtrunk, which reachedwp/6.7but not this branch.wp/6.5,wp/6.4andwp/6.3have the same page-wide assertion but don't need this: there the command palette opens the template in the site editor's browse view, where "Index" is the sidebar's heading and there is no editor top bar, so the scoped lookup can't pass (#83737, #83738 and #83739 were closed for that reason).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