Repository navigation
E2E: Open the settings sidebar in the Cover focal point test (wp/6.9) - #85785
Conversation
Backports the focal point test change from #85420 (f6becc1). The test fills the focal point fields in the block settings sidebar without opening it. The test before it shrinks the viewport, which closes the sidebar and saves that as a user preference. On runners with fewer resources, such as those used by private forks, that preference is saved before the test ends. The focal point test then starts with the sidebar closed and fails on every attempt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW
|
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
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
|
Size Change: 0 B Total Size: 2.12 MB ℹ️ View Unchanged
|
What?
Backports the Cover focal point test change from #85420 (f6becc1) to
wp/6.9:await editor.openDocumentSettingsSidebar();right after the test selects the Cover block.Only that one line is backported. The rest of #85420 (running the tests in parallel) isn't.
Why?
Cover › can use focal point picker to set the focal point of the cover imagefills the focal point fields in the block settings sidebar, but never opens the sidebar. It relies on the sidebar being open by default.The test before it ("other cover blocks are not over the navigation block when the menu is open") shrinks the viewport to 375px. That closes the sidebar and saves
isComplementaryAreaVisible: falseas a user preference. Preferences are saved on a 2.5 s debounce, and they're only reset once per run, not between tests:Trunk added this line in #85420, when running tests in parallel exposed the same leaked preference.
How?
Opens the document settings sidebar after selecting the block.
openDocumentSettingsSidebar()only opens it if it's closed, so nothing changes when it's already open.Testing Instructions
npm run test:e2e -- editor/blocks/cover.spec.js --grep 'focal point'. Without this change the test times out; with it, the test passes.🤖 Generated with Claude Code
https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW