Commit 60de0ab70d5 for woocommerce
commit 60de0ab70d5b3de6daa0e03f51e1848fca0dcf1e
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Thu Jul 9 13:41:46 2026 +0300
Fix plugin-check nightly job race via wp-env config provisioning (#66443)
diff --git a/plugins/woocommerce/.wp-env.e2e.json b/plugins/woocommerce/.wp-env.e2e.json
index 2b1620ca158..b9a661065d5 100644
--- a/plugins/woocommerce/.wp-env.e2e.json
+++ b/plugins/woocommerce/.wp-env.e2e.json
@@ -9,7 +9,8 @@
"https://downloads.wordpress.org/plugin/akismet.zip",
"https://github.com/WP-API/Basic-Auth/archive/master.zip",
"https://downloads.wordpress.org/plugin/wp-mail-logging.zip",
- "https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip"
+ "https://downloads.wordpress.org/plugin/wordpress-importer.0.8.zip",
+ "https://downloads.wordpress.org/plugin/plugin-check.zip"
],
"themes": [],
"config": {
diff --git a/plugins/woocommerce/changelog/fix-plugin-check-env-config b/plugins/woocommerce/changelog/fix-plugin-check-env-config
new file mode 100644
index 00000000000..01796e847b3
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-plugin-check-env-config
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Install and activate the plugin-check plugin via the E2E wp-env config instead of the e2e test setup script, so it is provisioned before lifecycle scripts run and no longer races with the backgrounded theme install that intermittently left `wp plugin check` unregistered in the nightly CI job.
diff --git a/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh b/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
index 15ae18fb2d6..9255bd78df0 100755
--- a/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
+++ b/plugins/woocommerce/tests/e2e/bin/test-env-setup.sh
@@ -54,9 +54,6 @@ $WP_CLI_PREFIX wp plugin activate e2e-test-helpers/process-waiting-actions.php
echo -e 'Activate Test Helper APIs utility plugin \n'
$WP_CLI_PREFIX wp plugin activate e2e-test-helpers/test-helper-apis.php
-echo -e 'Install Plugin-check utility plugin \n'
-$WP_CLI_PREFIX wp plugin install plugin-check --activate
-
echo -e 'Add Customer user \n'
if ! $WP_CLI_PREFIX wp user get customer --field=ID >/dev/null 2>&1; then
$WP_CLI_PREFIX wp user create customer customer@woocommercecoree2etestsuite.com \