Repository navigation
Repair wp/6.3 branch Actions: Fix flaky site editor command palette e2e test - #83739
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 configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 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. |
25742a3 to
56bf9f6
Compare
161b55d to
44da2ab
Compare
|
Size Change: 0 B Total Size: 1.46 MB ℹ️ View Unchanged
|
|
Closing: the upstream fix ported here (#62454) looks for the template title in the "Editor top bar", which matches how |
Part of #82930.
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. This branch has the same page-wide assertion, so the fix is included for consistency.Upstream
A straight cherry-pick of
b7368c0(#62454) fromtrunk, which reachedwp/6.7but not this branch.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
https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8