diff --git a/plugins/woocommerce/changelog/e2e-enable-hpos-wp-option b/plugins/woocommerce/changelog/e2e-enable-hpos-wp-option new file mode 100644 index 00000000000..5b19da85dd4 --- /dev/null +++ b/plugins/woocommerce/changelog/e2e-enable-hpos-wp-option @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Enable HPOS through the `wp option` command. diff --git a/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh b/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh index f50c2003cb1..79a52b1d8ac 100755 --- a/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh +++ b/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh @@ -26,7 +26,8 @@ wp-env run tests-cli sudo cp /var/www/html/wp-content/plugins/woocommerce/tests/ if [ $ENABLE_HPOS == 1 ]; then echo -e 'Enable High-Performance Order Tables\n' - wp-env run tests-cli wp plugin install https://gist.github.com/vedanshujain/564afec8f5e9235a1257994ed39b1449/archive/b031465052fc3e04b17624acbeeb2569ef4d5301.zip --activate + wp-env run tests-cli wp option update woocommerce_feature_custom_order_tables_enabled 'yes' + wp-env run tests-cli wp option update woocommerce_custom_orders_table_enabled 'yes' fi if [ $ENABLE_NEW_PRODUCT_EDITOR == 1 ]; then