Skip to content

Repair wp/5.1 branch Actions: Update the undo e2e snapshot to the space the editor types - #85676

Merged
desrosj merged 1 commit into
fix-actions-5.1/wait-for-block-switcher-in-e2efrom
fix-actions-5.1/update-undo-snapshot-space
Oct 29, 2026
Merged

desrosj merged 1 commit into
fix-actions-5.1/wait-for-block-switcher-in-e2efrom
fix-actions-5.1/update-undo-snapshot-space

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Member

Part of #83422.

What?

Changes one character in test/e2e/specs/__snapshots__/undo.test.js.snap: the space between "after" and "keyboard" in undo should undo typing after non input change 1 goes from a non-breaking space (U+00A0) to a regular space.

Why?

The test fails on every run, with a diff that looks empty because the two lines differ only in that character:

- <p>before keyboard <strong>after keyboard</strong></p>
+ <p>before keyboard <strong>after keyboard</strong></p>

The snapshot was recorded when the editor left a non-breaking space there. This branch now types a regular space; its rich text code has changed since the snapshot was recorded, including two 2021 backports (5df227f "Rich text: disable some attributes" and 1621f9c "Keep track of replacements as a sparse array.").

How?

trunk made the same snapshot change (after keyboard with a non-breaking space → with a regular space) in b5a1e0f8b70 (#13697, "RichText: Format boundaries without DOM"), and every later branch, including wp/5.2, expects the regular space. Only the snapshot changes; #13697's code changes are not ported.

Testing Instructions

The end-to-end job runs on this pull request.

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

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 26, 2026
@desrosj desrosj self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 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: 36ccce9d-1d33-4af0-8dd0-4a1d529529bd

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.

@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: adimoldovan <adrianmoldovanwp@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.

@desrosj
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from 852c8a0 to 2802a45 Compare October 27, 2026 21:02
@desrosj
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from 2802a45 to 4386c6d Compare October 29, 2026 12:48
@desrosj
desrosj removed this pull request from stack #85678 October 29, 2026 17:59
@desrosj
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from 4386c6d to 75560a6 Compare October 29, 2026 18:00
@desrosj
desrosj added this pull request to stack #85963 October 29, 2026 18:01
@desrosj
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from 75560a6 to cd2d8fe Compare October 29, 2026 20:21
@desrosj
desrosj merged commit 7466c12 into wp/5.1 Oct 29, 2026
13 checks passed
@desrosj
desrosj deleted the fix-actions-5.1/update-undo-snapshot-space branch October 29, 2026 20:23
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