Skip to content

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
fix-actions-5.1/wait-for-block-switcher-in-e2efrom
fix-actions-5.1/update-undo-snapshot-space
Closed

desrosj wants to merge 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 20, 2026

Copy link
Copy Markdown
Owner

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 WordPress@b5a1e0f8b70 (WordPress#13697, "RichText: Format boundaries without DOM"), and every later branch, including wp/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

@desrosj
desrosj added this pull request to stack #763 October 20, 2026 01:09
@desrosj
desrosj removed this pull request from stack #763 October 20, 2026 17:24
@desrosj
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from da6e371 to bd7e2ea Compare October 20, 2026 17:24
@desrosj
desrosj added this pull request to stack #797 October 20, 2026 17:24
@desrosj
desrosj removed this pull request from stack #797 October 20, 2026 19:37
@desrosj
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
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from bd7e2ea to c42173c Compare October 20, 2026 19:38
@desrosj
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
desrosj added this pull request to stack #812 October 20, 2026 19:39
@desrosj
desrosj removed this pull request from stack #812 October 20, 2026 23:59
@desrosj
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
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from c42173c to d62d385 Compare October 21, 2026 00:01
@desrosj
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
desrosj added this pull request to stack #827 October 21, 2026 00:02
@desrosj
desrosj removed this pull request from stack #827 October 21, 2026 02:38
@desrosj
desrosj added this pull request to stack #831 October 21, 2026 02:39
@desrosj
desrosj marked this pull request as ready for review October 26, 2026 18:57
@github-actions

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. You can also manually ask me to refresh this list by adding the props-bot label.

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>

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
desrosj force-pushed the fix-actions-5.1/update-undo-snapshot-space branch from d62d385 to 48b95e3 Compare October 26, 2026 19:14
@desrosj

desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Owner Author

Moved to WordPress#85676.

@desrosj desrosj closed this Oct 26, 2026
@desrosj
desrosj deleted the fix-actions-5.1/update-undo-snapshot-space branch October 29, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant