Add e2e coverage for pattern wrapper block identity#79462
Conversation
df9c990 to
2ed7e97
Compare
|
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. |
|
Size Change: 0 B Total Size: 7.51 MB |
There was a problem hiding this comment.
Pull request overview
Adds targeted end-to-end regression coverage to ensure pattern wrapper blocks display the underlying source block identity (name + badge) when entering pattern editing and when editing in isolated (focus mode) template part editors, aligning with the behavior introduced in #79417.
Changes:
- Adds an editor E2E test asserting the inspector block card badge changes from
PatterntoGroupafter clicking “Edit pattern” on an unsynced pattern wrapper. - Adds a site editor E2E test asserting an isolated template part editor shows the wrapper’s display name (
Header) with aGroupbadge (notPattern) for pattern wrappers.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/e2e/specs/site-editor/template-part.spec.js | Adds coverage for pattern wrapper identity in isolated template part (focus mode) editing. |
| test/e2e/specs/editor/various/patterns.spec.js | Adds coverage for inspector identity/badge behavior before vs. after “Edit pattern”. |
2ed7e97 to
cb592c7
Compare
What? Why?
Adds focused e2e coverage for pattern wrapper block identity after #79417.
How?
PatterntoGroupafter clickingEdit pattern.Headerwith aGroupbadge instead ofPattern.Manual Testing
metadata.patternNameandmetadata.name: "Header".Headerwith aPatternbadge.Edit pattern.Headerwith aGroupbadge.Headerwith aGroupbadge.