plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/930.md
Zip file for testing: woocommerce-gutenberg-products-block.zip
| Before | After |
|---|---|
add_filter( 'woocommerce_store_api_rate_limit_options', function() {
return [
'enabled' => true, // enables/disables Rate Limiting. Default: false
'proxy_support' => false, // enables/disables Proxy support. Default: false
'limit' => 1, // limit of request per timeframe. Default: 25
'seconds' => 500, // timeframe in seconds. Default: 10
];
} );
Create a product related page (e.g., Hand-picked Products)
Update the block to send some requests to the Store API. In the case of the Hand-picked Products block, clicking on Edit selected products should do the work:
Make sure the block is working as expected and you aren't getting any rate-limiting warnings.
Open your store in a new window using your browser's incognito mode. Add a product and go to the Cart Block page
Increase or decrease the product quantity couple of times. You can see failed rate limited request in the browser dev tools under Network tab, or you can reload the page to see the last saved product quantity value. See recording:
https://user-images.githubusercontent.com/14235870/209964938-36018e19-5a0c-414a-8b8b-14683bf7617c.mov
Repeat step 6 with a customer role account logged in. You should get the same result from step 6.
| Before | After |
|---|---|
Payment Options BlockAdd incompatible payment gateways with the C&C Blocks (e.g., Paypal, Klarna Payments). You will need to configure them to be detected and used by WooCommerce.
Create a new page and add the Checkout Block
Verify there is a notice in the sidebar displaying the list of incompatible gateways. The make as default & sidebar compatibility notices should be hidden while the incompatible gateways notice is displayed.
Select each inner block in the Checkout Blocks' List View to ensure our notice is displayed for each one.
Dismiss the incompatible gateways notice by clicking the top right X button. The make as default & sidebar compatibility notices should be visible again.
Do the same test from step 2 to 5 using the Cart Block
Payment Options BlockCheckout BlockPayment Options Block, and check the list of available payment gateways under Methods in the sidebar. The incompatible payment gateways should be highlighted (i.e., Incompatible with block-based checkout)| Case | Before | After |
|---|---|---|
| Products (Editor) | ||
| Products (Frontend) | ||
| All Products (Editor) | ||
| All Products (Frontend) |
Prerequisites:
Steps:
Expected:
Expected:
Repeat the same for the Products block!
Expected:
Expected:
Expected:
/wp-admin/options-general.php and change the site language to Dutch./wp-admin/update-core.php and fetch the translations: Vertalingen → Vertalingen updatenVerzending instead of Verzendmethoden.WooCommerce Header patterns in their two versions (light and dark).Customer Account block shows as expected on the designs:
CdRRBQ50zJiDvnY3AbDiXd-fi-76%3A9726WooCommerce Footer patterns (light and dark).Customer Account block.Manage account settings that goes to the Accounts & Privacy WC admin page.Display section on the settings and that you can change the display style to Icon-only, Text-only and Icon and text and that you can choose between the two icon styles.After testing the cart block, repeat the above tests for the mini cart block. With a block-based theme go here:
wp-admin/site-editor.php?postType=wp_template_part&postId=woocommerce%2Fwoocommerce%2F%2Fmini-cart
Screenshots are from the Mini Cart block, but these changes also impact the Cart and Checkout blocks.
| Theme | Before | After |
|---|---|---|
| Storefront | ||
| Twenty Twenty One | ||
| Twenty Twenty Two | ||
| Twenty Twenty Three (Canary) | ||
| Twenty Twenty Three (Pilgrimage) | ||
| Twenty Twenty Three (Whisper) | ||
| Zaino |
Preparation:
Create three posts, one with the Mini Cart block, another one with the Cart block and the last one with the Checkout block.
Test different themes:
Twenty Twenty Three: 1.1. Install it from here: https://wordpress.org/themes/twentytwentythree/ 1.2. Go to the pages created in step 1 and verify the Mini Cart, Cart and Checkout buttons follow the theme styles. 1.3. Go to Appearance > Editor > Styles > Browse Styles and change between style variations. Verify the buttons follow the styles in all of them.
Twenty Twenty Two (or another block theme): 2.1. Install it from here: https://wordpress.org/themes/twentytwentytwo/ 2.2. Go to the pages created in step 1 and verify the Mini Cart, Cart and Checkout buttons don't follow the theme styles. Instead, they have opinionated styles.
Storefront (or another classic theme): 3.1. Install it from here: https://wordpress.org/themes/storefront/ 3.2. Go to the pages created in step 1 and verify the Mini Cart, Cart and Checkout buttons don't follow the theme styles. Instead, they have opinionated styles.
| Before | After |
|---|---|