Commit eef729707eb for woocommerce

commit eef729707eba7a48c501aa7c0d14204f9436e9c3
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date:   Mon Sep 14 11:23:36 2026 +0300

    [tests] Cover two more blocks in the unregister-block-types test (#68663)

    test(blocks): Cover two more blocks in the unregister-block-types test

    The unrestricted-editor-context case in the unregister-block-types
    test loads a short list of block types and asserts that none is
    unregistered. This adds Catalog Sorting and Product Results Count to
    that list, widening the sample to two blocks a regression in context
    detection would plausibly take out.

    The migration branch makes two other changes to this file that are
    deliberately not carried.

    It reorders two assertions so that product-reviews precedes
    product-results-count, which is neither alphabetical nor otherwise
    clearer, so it is noise in a diff.

    Its copy also lacks the woocommerce/cart coverage in the widgets case:
    the block is absent from the input list, the expected unregister count
    is three rather than four, and there is no assertion naming it. That
    is not a removal. #68122 added that coverage to trunk after this work
    branched, as a backfill for an E2E test it deleted, and its commit is
    not an ancestor of the migration branch. Checking out the migration's
    file would therefore have reverted another pull request's backfill.

    The assertion is right on its own terms as well: block-types.ts is
    byte-identical between trunk and the migration branch, woocommerce/cart
    is in the widget allow-list in neither, and the widgets branch
    unregisters every woocommerce/* block not in that list.

    Refs TESTOPS-234
    Refs #68046

    Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

diff --git a/plugins/woocommerce/changelog/testops-234-unregister-block-types b/plugins/woocommerce/changelog/testops-234-unregister-block-types
new file mode 100644
index 00000000000..37e2b022fb5
--- /dev/null
+++ b/plugins/woocommerce/changelog/testops-234-unregister-block-types
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Extend the unregister-block-types unrestricted-context test to cover Catalog Sorting and Product Results Count.
diff --git a/plugins/woocommerce/client/blocks/assets/js/filters/unregister-block-types/test/index.ts b/plugins/woocommerce/client/blocks/assets/js/filters/unregister-block-types/test/index.ts
index 5b62fe96630..3c62652f0b6 100644
--- a/plugins/woocommerce/client/blocks/assets/js/filters/unregister-block-types/test/index.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/filters/unregister-block-types/test/index.ts
@@ -122,7 +122,9 @@ describe( 'unregister block types', () => {
 		( adminPage ) => {
 			loadFilter( adminPage, [
 				'woocommerce/breadcrumbs',
+				'woocommerce/catalog-sorting',
 				'woocommerce/checkout',
+				'woocommerce/product-results-count',
 				'myplugin/client-only',
 			] );

diff --git a/plugins/woocommerce/client/blocks/changelog/testops-234-unregister-block-types b/plugins/woocommerce/client/blocks/changelog/testops-234-unregister-block-types
new file mode 100644
index 00000000000..37e2b022fb5
--- /dev/null
+++ b/plugins/woocommerce/client/blocks/changelog/testops-234-unregister-block-types
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Extend the unregister-block-types unrestricted-context test to cover Catalog Sorting and Product Results Count.