plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/272.md
Zip File for testing: woocommerce-gutenberg-products-block.zip
Note: This zip file has 2.7.1 as the version showing in WordPress but it is actually 2.7.2.
This release impacts the logic around draft order cleanup.
Variations of tests:
Expected behaviour here is:
woocommerce_cleanup_draft_orders action should not appear in the scheduled tasks for Action Scheduler (Tools->Scheduled Actions).These actions only appear when the feature flag is on for the install. If you are not testing the package inclusion in WooCommerce core, you can simulate this by adding a blocks.ini file to the same directory as where this plugin is activated and include in the file the following code:
woocommerce_blocks_phase = 1
(remember to remove the file after testing!)
Expected behaviour is:
woocommerce_cleanup_draft_orders action should appear in the scheduled tasks for Action Scheduler (Tools->Scheduled Actions).woocommerce_cleanup_draft_orders and verify the just created draft order and none of the other orders on your test site have been deleted.post_modified_gmt field)There are PHPUnit tests covering behaviour as well (including catching errors).