Repository navigation
Navigation sidebar: Replace the Page List unit test with an e2e test - #85564
Conversation
Cover the regression fixed in #85357, where a menu with only a Page List showed an empty Navigation sidebar. The test checks that each page appears in the sidebar with its parent and child hierarchy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtYACptPEDsQEzVzQ69a8J
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: 0 B Total Size: 8.55 MB
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Custom Completer: should allow newlines after multiple option completions in
|
|
Let's also remove the |
The e2e test for Page List menus in the Navigation sidebar covers this regression, so the unit test of the List View selector is no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtYACptPEDsQEzVzQ69a8J
The spec already creates two pages, and a hidden page item would hide top-level and child pages alike, so the test does not need its own pages or a hierarchy check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtYACptPEDsQEzVzQ69a8J
What?
Follow up to #85357.
Replaces the Page List unit test from #85357 with an e2e test, as requested in review. The test checks that the Navigation sidebar lists the pages of a menu that contains only a Page List block.
Testing Instructions
npm run test:e2e -- test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.jsThe test fails if
"contentRole": trueis removed frompackages/block-library/src/page-list-item/block.json.Use of AI Tools
Written with Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code
https://claude.ai/code/session_01XtYACptPEDsQEzVzQ69a8J