Commit 1a3018b0610 for woocommerce
commit 1a3018b0610a5923b4a727de6cae7a1e5616b61a
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Thu Nov 12 00:07:53 2026 +0200
Fix Single Product option collision in Blocks e2e test (#70895)
Anchor the command palette locator. Other parallel specs create
"Single Product <slug>" templates, and the old regex matched them.
diff --git a/plugins/woocommerce/changelog/fix-e2e-blocks-single-product-option-collision b/plugins/woocommerce/changelog/fix-e2e-blocks-single-product-option-collision
new file mode 100644
index 00000000000..9c34530041f
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-e2e-blocks-single-product-option-collision
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Fix a Blocks e2e test that matched other specs' templates in parallel runs; no production change.
+
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/utils/register-block-single-product-template.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/utils/register-block-single-product-template.block_theme.spec.ts
index bcde958a5a3..79d2793d1ec 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/utils/register-block-single-product-template.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/utils/register-block-single-product-template.block_theme.spec.ts
@@ -41,7 +41,7 @@ test.describe( 'registerProductBlockType registers', () => {
await searchInput.fill( 'Single Product' );
const templateOption = page.getByRole( 'option', {
- name: /Single Product/i,
+ name: /^Single Product( Edit)?$/,
} );
await expect( templateOption ).toBeVisible();
await templateOption.click();