Fix K6 performance tests with LYS feature turned on (#46539)

* Set woocommerce_coming_soon option to no when setting up performance E2E

* Changelog
This commit is contained in:
Ilyas Foo 2024-04-12 22:14:48 +08:00 committed by GitHub
parent 5bcbb52a9b
commit 395a70756a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix K6 test with coming soon feature flag enabled

View File

@ -22,6 +22,7 @@ wp-env run tests-cli wp option set woocommerce_product_type 'both'
wp-env run tests-cli wp option set woocommerce_allow_tracking 'no' wp-env run tests-cli wp option set woocommerce_allow_tracking 'no'
wp-env run tests-cli wp option set woocommerce_enable_checkout_login_reminder 'yes' wp-env run tests-cli wp option set woocommerce_enable_checkout_login_reminder 'yes'
wp-env run tests-cli wp option set --format=json woocommerce_cod_settings '{"enabled":"yes"}' wp-env run tests-cli wp option set --format=json woocommerce_cod_settings '{"enabled":"yes"}'
wp-env run tests-cli wp option set woocommerce_coming_soon 'no'
# WooCommerce shop pages # WooCommerce shop pages
wp-env run tests-cli wp wc --user=admin tool run install_pages wp-env run tests-cli wp wc --user=admin tool run install_pages