Commit c2c6b940e3e for woocommerce
commit c2c6b940e3e0c1e3478a1c1dfc4470c5ad96c3ea
Author: Tung Du <dinhtungdu@gmail.com>
Date: Thu Jun 11 15:06:16 2026 +0700
Fix Product Filters e2e template path (#65659)
diff --git a/plugins/woocommerce/changelog/fix-product-filters-e2e-template-path b/plugins/woocommerce/changelog/fix-product-filters-e2e-template-path
new file mode 100644
index 00000000000..49a5a93d1a3
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-product-filters-e2e-template-path
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Move the Product Filters multiple-instance e2e content template to the Core blocks template directory.
diff --git a/plugins/woocommerce/client/blocks/tests/e2e/tests/product-filters/product-filters-frontend.block_theme.spec.ts b/plugins/woocommerce/client/blocks/tests/e2e/tests/product-filters/product-filters-frontend.block_theme.spec.ts
index 73c2152334d..9be2b47dd90 100644
--- a/plugins/woocommerce/client/blocks/tests/e2e/tests/product-filters/product-filters-frontend.block_theme.spec.ts
+++ b/plugins/woocommerce/client/blocks/tests/e2e/tests/product-filters/product-filters-frontend.block_theme.spec.ts
@@ -119,7 +119,10 @@ test.describe( 'woocommerce/product-filters - Frontend', () => {
} );
test.describe( 'Multiple instances', () => {
- test.beforeEach( async ( { page } ) => {
+ test( 'syncs active filters between Product Filters blocks', async ( {
+ page,
+ requestUtils,
+ } ) => {
await page.addInitScript( () => {
// Mock the wc global variable.
if ( typeof window.wc === 'undefined' ) {
@@ -132,12 +135,7 @@ test.describe( 'woocommerce/product-filters - Frontend', () => {
};
}
} );
- } );
- test( 'syncs active filters between Product Filters blocks', async ( {
- page,
- requestUtils,
- } ) => {
const templateCompiler = await requestUtils.createTemplateFromFile(
'archive-product_multiple-product-filters'
);
diff --git a/plugins/woocommerce/client/blocks/tests/e2e/content-templates/template_archive-product_multiple-product-filters.handlebars b/plugins/woocommerce/tests/e2e-pw/content-templates/blocks/template_archive-product_multiple-product-filters.handlebars
similarity index 100%
rename from plugins/woocommerce/client/blocks/tests/e2e/content-templates/template_archive-product_multiple-product-filters.handlebars
rename to plugins/woocommerce/tests/e2e-pw/content-templates/blocks/template_archive-product_multiple-product-filters.handlebars