51 lines
2.8 KiB
Markdown
51 lines
2.8 KiB
Markdown
# Testing notes and ZIP for release 5.9.0
|
|
|
|
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/7161568/woocommerce-gutenberg-products-block.zip)
|
|
|
|
## Feature plugin
|
|
|
|
### Add extensibility point for extensions to filter payment methods ([4668](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4668))
|
|
|
|
1. Make sure Check payments and Cash on delivery payment methods are activated and appear in the Checkout block
|
|
2. Install this extension specifically made for testing: [woocommerce-payment-method-test.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/7160423/woocommerce-payment-method-test.zip)
|
|
|
|
```js
|
|
import { registerPaymentMethodExtensionCallbacks } from '@woocommerce/blocks-registry';
|
|
|
|
registerPaymentMethodExtensionCallbacks( 'woocommerce-marketplace-extension', {
|
|
cod: ( arg ) => {
|
|
return false;
|
|
},
|
|
cheque: ( arg ) => {
|
|
return arg.billingData.city === 'Denver';
|
|
},
|
|
} );
|
|
```
|
|
|
|
3. Go to the Checkout block
|
|
4. Notice that Cash on delivery is no longer available
|
|
5. Notice that Check payments are available only when the City is set to "Denver"
|
|
|
|
### Smoke test the Checkout block
|
|
|
|
Because of experimental work done during this release, we need to ensure no regressions have been made to the checkout block. Please smoke test the checkout block.
|
|
|
|
1. Enable a few different payment methods in your store.
|
|
2. Add some products to your cart.
|
|
3. Go to the Checkout block, ensure it displays with no errors and the correct cart contents are showing.
|
|
4. Ensure you can enter your shipping and billing addresses.
|
|
5. Ensure validation still works, (focus a field, delete the content and ensure an error is shown, e.g. postcode field).
|
|
6. Ensure you can use different payment methods.
|
|
7. Ensure you can check out and that the order is placed.
|
|
|
|
## Feature plugin and package inclusion in WooCommerce
|
|
|
|
### Fix Product Search block displaying incorrectly ([4740](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4740))
|
|
|
|
1. Add the Product Search block to a page.
|
|
2. Ensure it renders at full width with a gap between the input and the button.
|
|
|
|
| Before | After |
|
|
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
| ![image](https://user-images.githubusercontent.com/3616980/133223981-f31f54ff-2a4d-4652-a8e8-599c7942b7ce.png) | ![image](https://user-images.githubusercontent.com/5656702/133245602-8751a6fd-9bad-40b2-aad0-4d91e09afdd7.png) |
|