plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/371.md
Note: These tests only apply to the feature plugin, nothing in this release impacts what is exposed in WooCommerce core via package.
Zip file for testing: woocommerce-gutenberg-products-block.zip
All tests require:
Create an account? checkbox. We're going to use a stale copy of the page to submit a checkout API request with should_create_account=true.
WooCommerce > Settings > Accounts & Privacy > Allow customers to create an account during checkout is checked (temporarily enable).Allow shoppers to sign up for a user account during checkout is enabled, publish.Create an account checkbox.Create an account. Do not submit (yet).WooCommerce > Settings > Accounts & Privacy > Allow customers to create an account during checkout and save settings.should_create_account=true).As an alternative to (1), could also hack the JS REST request to always send should_create_account=true, or use other approaches to call the API with that value set.
WooCommerce > Settings > Accounts & Privacy > Allow customers to create an account during checkout and save settings.Create an account checkbox.Allow shoppers to sign up for a user account during checkout setting, publish, change store setting and refresh page.woocommerce_checkout_registration_enabled hook to disable checkout signup.Allow customers to place orders without an account) and ensure that accounts are created when appropriate.