From e36baab4fedff79914d77e4ce25797d737ad8692 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:27:18 +0300 Subject: [PATCH] [e2e tests] Disable woocommerce_coming_soon during test environment setup (#47024) * Disable woocommerce_coming_soon in test env setup * Disable woocommerce_coming_soon in test env setup * Add changelog --- .../changelog/e2e-disable-coming-soon-in-env-setup | 4 ++++ plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 plugins/woocommerce/changelog/e2e-disable-coming-soon-in-env-setup diff --git a/plugins/woocommerce/changelog/e2e-disable-coming-soon-in-env-setup b/plugins/woocommerce/changelog/e2e-disable-coming-soon-in-env-setup new file mode 100644 index 00000000000..9cd85835675 --- /dev/null +++ b/plugins/woocommerce/changelog/e2e-disable-coming-soon-in-env-setup @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +E2E tests: disable woocommerce_coming_soon during test environment setup 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 58af622aefa..8ddcd7ce2c2 100755 --- a/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh +++ b/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh @@ -38,5 +38,8 @@ if [ $ENABLE_TRACKING == 1 ]; then wp-env run tests-cli wp option update woocommerce_allow_tracking 'yes' fi +echo -e 'Disabling coming soon option\n' +wp-env run tests-cli wp option update woocommerce_coming_soon 'no' + echo -e 'Upload test images \n' wp-env run tests-cli wp media import './test-data/images/image-01.png' './test-data/images/image-02.png' './test-data/images/image-03.png'