Skip to content

Tests: Cover deprecated feature-level selectors in WP_Theme_JSON - #15849

Closed
shail-mehta wants to merge 4 commits into
WordPress:trunkfrom
shail-mehta:tests/theme-json-deprecated-feature-selectors
Closed

shail-mehta wants to merge 4 commits into
WordPress:trunkfrom
shail-mehta:tests/theme-json-deprecated-feature-selectors

Conversation

@shail-mehta

@shail-mehta shail-mehta commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Trac ticket: #66640

Backports for: #64345

What?

Adds dedicated test coverage for deprecated feature-level selectors defined via __experimentalSelector.

Why?

The test should not depend on the Calendar block’s metadata because Gutenberg PR WordPress/gutenberg#64345 replaces its deprecated color selector with stable block selectors.

How?

  • Registers a purpose-built test block using __experimentalSelector.
  • Verifies the generated color and typography CSS.
  • Cleans up the registered block during test teardown.

Testing Instructions

  • PHP syntax check passes.
  • No lint errors.
  • PHPUnit could not run locally because the Docker MySQL service was unavailable.

Use of AI Tools

  • Cursor

@shail-mehta shail-mehta changed the title Title: Tests: Cover deprecated feature-level selectors in WP_Theme_JSON Tests: Cover deprecated feature-level selectors in WP_Theme_JSON Nov 9, 2026
@shail-mehta shail-mehta self-assigned this Nov 10, 2026
@shail-mehta
shail-mehta marked this pull request as ready for review November 10, 2026 05:20
@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.

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

Props shailu25.

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


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@t-hamano t-hamano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Setting the Gutenberg PR aside, I think this test is worth adding to core.

wporg-sync pushed a commit that referenced this pull request Nov 10, 2026
Adds a test that registers a dedicated block with feature-level selectors defined via `__experimentalSelector` and verifies the generated color and typography styles.

Developed in #15849

Props shailu25, wildworks.
Fixes #66640.

git-svn-id: https://develop.svn.wordpress.org/trunk@65376 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 65376
GitHub commit: 496200b

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Nov 10, 2026
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 10, 2026
Adds a test that registers a dedicated block with feature-level selectors defined via `__experimentalSelector` and verifies the generated color and typography styles.

Developed in WordPress/wordpress-develop#15849

Props shailu25, wildworks.
Fixes #66640.
Built from https://develop.svn.wordpress.org/trunk@65376


git-svn-id: http://core.svn.wordpress.org/trunk@64515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.

2 participants