Repository navigation
Repair wp/5.1 branch Actions: Update the undo e2e snapshot to the space the editor types - #85676
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
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. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
852c8a0 to
2802a45
Compare
2802a45 to
4386c6d
Compare
4386c6d to
75560a6
Compare
75560a6 to
cd2d8fe
Compare
Part of #83422.
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 b5a1e0f8b70 (#13697, "RichText: Format boundaries without DOM"), and every later branch, includingwp/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