Commit ff82448e2f9 for woocommerce
commit ff82448e2f97b769cbb7cacdb91f62adcff8d126
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Wed Jul 22 19:41:42 2026 +0300
Declare E2E themes in .wp-env.e2e.json instead of installing at provision (#66859)
diff --git a/plugins/woocommerce/.wp-env.e2e.json b/plugins/woocommerce/.wp-env.e2e.json
index 5cd54d68277..50937b52be8 100644
--- a/plugins/woocommerce/.wp-env.e2e.json
+++ b/plugins/woocommerce/.wp-env.e2e.json
@@ -13,7 +13,11 @@
"https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip",
"https://downloads.wordpress.org/plugin/plugin-check.zip"
],
- "themes": [],
+ "themes": [
+ "https://downloads.wordpress.org/theme/storefront.zip",
+ "https://downloads.wordpress.org/theme/twentytwenty.zip",
+ "https://downloads.wordpress.org/theme/twentytwentytwo.zip"
+ ],
"config": {
"JETPACK_AUTOLOAD_DEV": true,
"WP_DEBUG": false,
diff --git a/plugins/woocommerce/changelog/task-declare-e2e-themes-in-wp-env-config b/plugins/woocommerce/changelog/task-declare-e2e-themes-in-wp-env-config
new file mode 100644
index 00000000000..cb4a77398ae
--- /dev/null
+++ b/plugins/woocommerce/changelog/task-declare-e2e-themes-in-wp-env-config
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Declare the storefront, twentytwenty and twentytwentytwo E2E themes in .wp-env.e2e.json instead of installing them from wordpress.org during provisioning.
diff --git a/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh b/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
index 3ace5accbf2..dcf111ac575 100755
--- a/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
+++ b/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
@@ -27,9 +27,6 @@ fi
echo -e 'Activate WooCommerce \n'
$WP_CLI_PREFIX wp plugin activate woocommerce
-echo -e 'Install twentytwenty, twentytwentytwo and storefront themes \n'
-$WP_CLI_PREFIX wp theme install storefront twentytwenty twentytwentytwo &
-
echo -e 'Activate default theme \n'
$WP_CLI_PREFIX wp theme activate twentytwentythree