Repository navigation
Repair wp/5.1 branch Actions: Update the undo e2e snapshot to the space the editor types - #785
Closed
desrosj wants to merge 1 commit into
Conversation
desrosj
force-pushed
the
fix-actions-5.1/update-undo-snapshot-space
branch
from
October 20, 2026 17:24
da6e371 to
bd7e2ea
Compare
desrosj
changed the base branch from
fix-actions-5.1/wait-for-block-switcher-in-e2e
to
wp/5.1
October 20, 2026 19:37
desrosj
force-pushed
the
fix-actions-5.1/update-undo-snapshot-space
branch
from
October 20, 2026 19:38
bd7e2ea to
c42173c
Compare
desrosj
changed the base branch from
wp/5.1
to
fix-actions-5.1/wait-for-block-switcher-in-e2e
October 20, 2026 19:39
desrosj
changed the base branch from
fix-actions-5.1/wait-for-block-switcher-in-e2e
to
wp/5.1
October 21, 2026 00:00
desrosj
force-pushed
the
fix-actions-5.1/update-undo-snapshot-space
branch
from
October 21, 2026 00:01
c42173c to
d62d385
Compare
desrosj
changed the base branch from
wp/5.1
to
fix-actions-5.1/wait-for-block-switcher-in-e2e
October 21, 2026 00:02
desrosj
marked this pull request as ready for review
October 26, 2026 18:57
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the 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. |
`undo › should undo typing after non input change` types "after keyboard" into a bold format and compares the post content with a snapshot. The snapshot has a non-breaking space between the two words, but this branch's rich text now produces a regular space, so the snapshot never matches. `trunk` updated the same snapshot to a regular space in WordPress#13697, which changed how format boundaries are handled. Do the same here. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt
desrosj
force-pushed
the
fix-actions-5.1/update-undo-snapshot-space
branch
from
October 26, 2026 19:14
d62d385 to
48b95e3
Compare
Owner
Author
|
Moved to WordPress#85676. |
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?
Changes one character in
test/e2e/specs/__snapshots__/undo.test.js.snap: the space between "after" and "keyboard" inundo should undo typing after non input change 1goes 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:
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?
trunkmade the same snapshot change (after keyboardwith a non-breaking space → with a regular space) in WordPress@b5a1e0f8b70 (WordPress#13697, "RichText: Format boundaries without DOM"), and every later branch, includingwp/5.2, expects the regular space. Only the snapshot changes; WordPress#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
https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt