From 040f1387170202bf99bf9a1c0ecaf6bf91ac75a1 Mon Sep 17 00:00:00 2001 From: rodelgc Date: Fri, 7 Jul 2023 01:26:09 +0800 Subject: [PATCH] E2E: Set up HPOS through `wp option` cli command (#39095) * Add changelog * Use `wp option` to enable HPOS --- plugins/woocommerce/changelog/e2e-enable-hpos-wp-option | 4 ++++ plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/e2e-enable-hpos-wp-option 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