Skip to content

E2E: Open the settings sidebar in the Cover focal point test (wp/7.1) - #85787

Merged
desrosj merged 1 commit into
fix/wp-7.1-e2e-build-oncefrom
fix/wp-7.1-cover-focal-point-sidebar
Oct 28, 2026
Merged

desrosj merged 1 commit into
fix/wp-7.1-e2e-build-oncefrom
fix/wp-7.1-cover-focal-point-sidebar

Conversation

@desrosj

@desrosj desrosj commented Oct 27, 2026

Copy link
Copy Markdown
Member

What?

Backports the Cover focal point test change from #85420 (f6becc1) to wp/7.1: 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 image fills 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: false as a user preference. Preferences are saved on a 2.5 s debounce, and they're only reset once per run, not between tests:

  • On fast runners, the test usually ends before the preference is saved.
  • This issue can be encountered on runs with fewer resources, such as those used within private forks. There the preference is saved, and the focal point test starts with the sidebar closed. It then times out waiting for "Focal point left position" on every attempt, retries included.

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

  • The Cover spec passes in the E2E run on this PR.
  • To reproduce the failure, close the settings sidebar, then run 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

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
@desrosj desrosj self-assigned this Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ffd691ef-3a86-413f-948a-24334a4c2989

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@desrosj
desrosj added this pull request to stack #85784 October 27, 2026 21:06
@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 27, 2026
@desrosj
desrosj marked this pull request as ready for review October 27, 2026 21:10
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

📦 Bundle size

Size Change: 0 B

Total Size: 7.75 MB

07b49d9 Run

🏁 Flaky tests

Show the failures

Some 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.

can update page link to a custom URL in /test/e2e/specs/editor/blocks/navigation.spec.js, passed after 1 failed attempt.
Error: apiRequestContext.fetch: socket hang up
Call log:
  - → DELETE http://localhost:8889/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F281&force=true
    - user-agent: Playwright/1.61.1 (x64; ubuntu 24.04) node/24.18 CI/1
    - accept: */*
    - accept-encoding: gzip,deflate,br
    - X-WP-Nonce: 52e3614760
    - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1793308555%7CvsSXiZS75SvepSXyn1IfP09z7fRAXLAnu64fDRt2yq5%7C8d1e92958b08b66db5471c603cc47425c7ae5da44855c46ab5878996f185f3ef; wp-settings-time-1=1793135755

    at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119:39)
    at RequestUtils.call (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/pages.ts:30:20)
    at map (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/pages.ts:59:37)
    at RequestUtils.deleteAllPages (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/pages.ts:59:9)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:1933:4
should update the URL from the last navigation if only varies in the URL fragment in /test/e2e/specs/interactivity/router-navigate.spec.ts, passed after 1 failed attempt.
Error: expect(locator).toHaveText(expected) failed

Locator:  getByTestId('title')
Expected: "Link 1"
Received: "Main"
Timeout:  5000ms

Call log:
  - Expect "toHaveText" with timeout 5000ms
  - waiting for getByTestId('title')
    14 × locator resolved to <h2 data-testid="title">Main</h2>
       - unexpected value "Main"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:163:25

07b49d9 Run

@andrewserong andrewserong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@desrosj
desrosj merged commit db9560c into wp/7.1 Oct 28, 2026
86 of 93 checks passed
@desrosj
desrosj deleted the fix/wp-7.1-cover-focal-point-sidebar branch October 28, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants