Commit 2f3ff6ff86 for woocommerce

commit 2f3ff6ff8690d80335929997a8bc9c221d8cfcc7
Author: Vladimir Reznichenko <kalessil@gmail.com>
Date:   Wed Feb 18 11:12:56 2026 +0100

    [dev] CI: use the same environment for all performance jobs (#63353)

    Long overdue consolidation of environments for our performance jobs.

diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index 10cd3f4df3..839d9e8ecc 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -682,7 +682,7 @@
 						"@woocommerce/classic-assets"
 					],
 					"testEnv": {
-						"start": "env:test"
+						"start": "env:perf"
 					},
 					"events": [
 						"push",
diff --git a/plugins/woocommerce/tests/metrics/specs/frontend.spec.js b/plugins/woocommerce/tests/metrics/specs/frontend.spec.js
index c71513431c..438f386150 100644
--- a/plugins/woocommerce/tests/metrics/specs/frontend.spec.js
+++ b/plugins/woocommerce/tests/metrics/specs/frontend.spec.js
@@ -12,7 +12,7 @@ import { getTotalBlockingTime, median } from '../utils';

 // See https://github.com/WordPress/gutenberg/issues/51383#issuecomment-1613460429
 const BROWSER_IDLE_WAIT = 1000;
-const HOME = '/';
+const SHOP = '/shop/';

 const results = {
 	totalBlockingTime: [],
@@ -47,10 +47,10 @@ test.describe( 'Frontend Performance', () => {
 				page,
 				metrics,
 			} ) => {
-				await page.goto( HOME );
+				await page.goto( SHOP );

-				// Wait for the site title to load.
-				await page.locator( '[aria-current="page"]' ).first().waitFor();
+				// Wait for the products to load.
+				await page.locator( '[id="main"]' ).first().waitFor();

 				// Get the durations.
 				const loadingDurations = await metrics.getLoadingDurations();
diff --git a/plugins/woocommerce/tests/performance/bin/init-sample-products.sh b/plugins/woocommerce/tests/performance/bin/init-sample-products.sh
index 7012487cde..f9bf74fdee 100755
--- a/plugins/woocommerce/tests/performance/bin/init-sample-products.sh
+++ b/plugins/woocommerce/tests/performance/bin/init-sample-products.sh
@@ -31,4 +31,8 @@ wp-env run tests-cli wp import wp-content/plugins/woocommerce/sample-data/sample
 # install Storefront
 wp-env run tests-cli wp theme install storefront --activate

+# reduce the impact of background activities on the testing setup
+wp-env run tests-cli wp config set DISABLE_WP_CRON true --raw --type=constant
+wp-env run tests-cli wp config set WP_HTTP_BLOCK_EXTERNAL true --raw --type=constant
+
 echo "Success! Your E2E Test Environment is now ready."