woocommerce/plugins/woocommerce-blocks/docs/testing/releases/640.md

70 lines
4.0 KiB
Markdown
Raw Normal View History

## Testing notes and ZIP for release 6.4.0
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/7581080/woocommerce-gutenberg-products-block.zip)
## Feature Plugin
### Switch variables round in the error message of `mustContain` validation function. ([5155](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5155))
1. Install the [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/) plugin and, inside its settings, add this JS code to the footer:
```js
wc.blocksCheckout.__experimentalRegisterCheckoutFilters( 'my-test-extension', {
subtotalPriceFormat: ( value ) => 'test',
} );
```
2. Visit the Cart or Checkout block and ensure the error message reads `Error: Returned value must include "<price/>", you passed "test"`
3. Change the code to
```js
wc.blocksCheckout.__experimentalRegisterCheckoutFilters( 'my-test-extension', {
subtotalPriceFormat: ( value ) => '<price/>test',
} );
```
4. Reload the page and verify the Cart and Checkout block loads correctly.
<img src="https://user-images.githubusercontent.com/5656702/141991343-fd10d3c3-a04f-4486-ac2b-505f8cba3ac0.png" alt="" width="642" />
### Lazy load missing translation files. ([5112](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5112))
1. Switch the site language to Spanish.
2. Update the translations via `WP Admin → Dashboard → Translations → Update Translations`.
3. Create a test page, add the Checkout block and save it.
4. Ensure that the _"Terms and conditions"_ text in the editor is in Spanish.
5. Look up the frontend and verify that the _"Terms and conditions"_ text is in Spanish (see screenshot).
6. Switch the site language to German and repeat steps 2. until 5. (texts should then appear in German)
![#5005-Spanish-after](https://user-images.githubusercontent.com/3323310/140933124-619a9701-a74d-43d3-8a55-1540c4ff0de1.png)
![#5005-German-after](https://user-images.githubusercontent.com/3323310/140933183-0887538e-5c3a-4161-aef8-bd53ac8463dc.png)
### Checkout Terms Block: Fix Terms and Conditions checkbox position in editor. ([5191](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5191))
1. Go to the post editor.
2. Add Checkout block.
3. Select **Terms and Conditions** child block.
4. Activate `Require checkbox` display option.
5. Confirm that the checkbox is aligned to the top of the paragraph.
![Screen Shot 2021-11-18 at 23 34 05](https://user-images.githubusercontent.com/1847066/142507675-5cd34956-8bdf-41b2-9f3d-eff00928f548.png)
### Fix manual entry within Quantity Inputs. ([5197](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5197))
- Add a product to your cart.
- Go to a page with the Cart block.
- Try typing a quantity into the line item.
- Totals should update.
- Try typing a letter. Input should be ignored and reset to `1`.
2021-12-17 10:47:16 +00:00
## Feature plugin and package inclusion in WooCommerce
### Feature gate WC Block Templates to WC v6.0.0. ([5210](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5210))
1. Install and activate version 11.9.1 of [the Gutenberg plugin](https://wordpress.org/plugins/gutenberg/).
2. Install and activate a FSE enabled theme, such as [the TT1 Blocks theme](https://wordpress.org/themes/tt1-blocks/).
3. In WC 5.9, check that block templates are not loading. You can verify that going to a single product page (ie: Cap) and verify that contents don't appear twice.
4. Also check the templates are not loading in the Site Editor (Appearance > Editor > Templates > General templates -- if this last folder doesn't exist, that means this is testing well).
<!-- FEEDBACK -->
---
[We're hiring!](https://woocommerce.com/careers/) Come work with us!
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/testing/releases/640.md)
<!-- /FEEDBACK -->