Commit a2a795a2d9a for woocommerce

commit a2a795a2d9a1a8bf1b5bf9386e3d55fa107fe058
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date:   Mon Sep 14 11:22:21 2026 +0300

    [tests] Reduce pattern editor E2E tests from 4 to 1 (#68597)

    test(blocks): Reduce pattern editor E2E tests from 4 to 1

    The pattern editor specs ran four browser titles: a synced and an
    unsynced pattern, each in a block theme and in a classic theme. All
    four inserted the same Woo blocks and checked the same six product
    titles and prices. None read the pattern's sync state, its name, or
    anything that differs by theme.

    Keep the synced pattern title in the block theme, which is the only
    test left that creates a pattern in the WordPress pattern editor, and
    remove the other three by deleting the classic theme spec and the
    unsynced title.

    Consolidates the mega-branch slices:
    - Slice 085: test(blocks): Consolidate pattern editor coverage

    Refs TESTOPS-234
    Refs #68046

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

diff --git a/plugins/woocommerce/changelog/testops-234-patterns-editor b/plugins/woocommerce/changelog/testops-234-patterns-editor
new file mode 100644
index 00000000000..e351582eb44
--- /dev/null
+++ b/plugins/woocommerce/changelog/testops-234-patterns-editor
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Reduce pattern editor E2E tests from 4 to 1; the synced block theme pattern title stays as the pattern editor canary.
+
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.block_theme.spec.ts
index 12a4f266a3f..89f43ec2c40 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.block_theme.spec.ts
@@ -20,17 +20,4 @@ test.describe( 'Patterns in block theme', () => {
 		await expect( productTitles ).toHaveText( expectedTitles );
 		await expect( productPrices ).toHaveText( expectedPrices );
 	} );
-
-	test( 'Unsynced Pattern can be created with basic blocks', async ( {
-		admin,
-		editor,
-	} ) => {
-		await admin.createNewPattern( 'Woo Blocks Unsynced Pattern', false );
-
-		const { productTitles, productPrices } =
-			await addTestingBlocks( editor );
-
-		await expect( productTitles ).toHaveText( expectedTitles );
-		await expect( productPrices ).toHaveText( expectedPrices );
-	} );
 } );
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.classic_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.classic_theme.spec.ts
deleted file mode 100644
index 0e46fb6a763..00000000000
--- a/plugins/woocommerce/tests/e2e/tests/blocks/patterns/add-new-pattern.classic_theme.spec.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * External dependencies
- */
-import { test, expect, CLASSIC_THEME_SLUG } from '@woocommerce/e2e-utils';
-
-/**
- * Internal dependencies
- */
-import { addTestingBlocks, expectedTitles, expectedPrices } from './utils';
-
-test.describe( 'Patterns in classic theme', () => {
-	test.beforeEach( async ( { requestUtils } ) => {
-		await requestUtils.activateTheme( CLASSIC_THEME_SLUG );
-	} );
-
-	test( 'Synced Pattern can be created with basic blocks', async ( {
-		admin,
-		editor,
-	} ) => {
-		await admin.createNewPattern( 'Woo Blocks Unsynced Pattern' );
-
-		const { productTitles, productPrices } =
-			await addTestingBlocks( editor );
-
-		await expect( productTitles ).toHaveText( expectedTitles );
-		await expect( productPrices ).toHaveText( expectedPrices );
-	} );
-
-	test( 'Unsynced Pattern can be created with basic blocks', async ( {
-		admin,
-		editor,
-	} ) => {
-		await admin.createNewPattern( 'Woo Blocks Unsynced Pattern', false );
-
-		const { productTitles, productPrices } =
-			await addTestingBlocks( editor );
-
-		await expect( productTitles ).toHaveText( expectedTitles );
-		await expect( productPrices ).toHaveText( expectedPrices );
-	} );
-} );