Repository navigation
E2E: Open the settings sidebar in the Cover focal point test (wp/7.2) - #85788
Merged
Merged
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
🤖 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. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: 0 B Total Size: 9.04 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
|
desrosj
marked this pull request as ready for review
October 27, 2026 21:10
desrosj
requested review from
a team,
adimoldovan,
andrewserong,
lucatume,
ntsekouras,
ramonjd,
sirreal and
tellthemachines
October 27, 2026 21:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Backports the Cover focal point test change from #85420 (f6becc1) to
wp/7.2: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. On this branch the test also selects the block inspector's Settings tab, which is why the sidebar has to be open first.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