Commit faca1058565 for woocommerce

commit faca105856557abb9d66503b4cf4ea66ccc77fb2
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date:   Wed Jul 22 20:37:27 2026 +0300

    Fix Storefront activation in performance env init script (#66898)

diff --git a/plugins/woocommerce/changelog/wooplug-7174-perf-env-storefront-activate b/plugins/woocommerce/changelog/wooplug-7174-perf-env-storefront-activate
new file mode 100644
index 00000000000..ce335c7a89d
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-7174-perf-env-storefront-activate
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Explicitly activate Storefront in the performance env init script instead of relying on `theme install --activate`, which skips activation when the theme is pre-provisioned.
+
diff --git a/plugins/woocommerce/tests/performance/bin/init-environment.sh b/plugins/woocommerce/tests/performance/bin/init-environment.sh
index ae4604aa157..74dcb341333 100755
--- a/plugins/woocommerce/tests/performance/bin/init-environment.sh
+++ b/plugins/woocommerce/tests/performance/bin/init-environment.sh
@@ -34,8 +34,9 @@ $wp_cli wp wc --user=admin tool run install_pages
 # Importing WooCommerce sample products"
 $wp_cli wp import wp-content/plugins/woocommerce/sample-data/sample_products.xml --authors=skip

-# install Storefront
-$wp_cli wp theme install storefront --activate
+# Activate Storefront (pre-provisioned via .wp-env.e2e.json themes[]; `theme install
+# --activate` would skip activation on the already-installed path).
+$wp_cli wp theme activate storefront || { echo "Error: failed to activate storefront." >&2; exit 1; }

 # Pin order storage to the legacy posts table (HPOS off) for deterministic runs.
 # These performance requests assert the classic post.php order-edit screens,