Skip to content

Commit

Permalink
[e2e tests] Disable woocommerce_coming_soon during test environment s…
Browse files Browse the repository at this point in the history
…etup (#47024)

* Disable woocommerce_coming_soon in test env setup

* Disable woocommerce_coming_soon in test env setup

* Add changelog
  • Loading branch information
adimoldovan committed Apr 29, 2024
1 parent 9ff383e commit e36baab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

E2E tests: disable woocommerce_coming_soon during test environment setup
3 changes: 3 additions & 0 deletions plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit e36baab

Please sign in to comment.