Skip to content

Fix block validation E2E tests on WordPress trunk - #569

Open
cbravobernal wants to merge 2 commits into
trunkfrom
fix/e2e-editor-notice-selector
Open

cbravobernal wants to merge 2 commits into
trunkfrom
fix/e2e-editor-notice-selector

Conversation

@cbravobernal

Copy link
Copy Markdown
Contributor

The E2E - WP trunk / Shard 2/4 job fails on two tests:

  • block-testimonial.spec.ts › should validate required quote field in testimonial block
  • block-v3-features.spec.ts › should validate required fields on publish

WordPress trunk now renders editor notices with a new Notice component (notices-inline-notices__notice is-error, text in a hashed __description span), so .components-notice.is-error .components-notice__content no longer matches. The notice itself is shown as expected; the failure trace shows "An ACF Block on this page requires attention before you can save." in the editor notices area.

Both tests now locate the notice by its message, which works with the old and new markup. Test-only change.

Closes

Use of AI Tools

Authored with Claude Code (Claude Opus 5.5): diagnosed the failure from the Playwright trace and wrote the change. Reviewed by me.

🤖 Generated with Claude Code

WordPress trunk renders editor notices with new markup that no longer
includes .components-notice__content, so locate the notice by its message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props cbravobernal.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant