Updated Release Testing Instructions WooCommerce 5.3 (markdown)

Tam Mullen 2021-04-20 14:15:27 +01:00
parent 7b133e692c
commit c400deef4d
1 changed files with 60 additions and 1 deletions

@ -136,4 +136,63 @@ PR: https://github.com/woocommerce/woocommerce/pull/23188
1. Create an order for a downloadable product.
1. Open the order details in the admin area, and revoke access to the download for the user ("Revoke access" button in the "Downloadable product permissions" box)
1. Try to grant access to the same product again and the permission is successfully granted.
1. Try to grant access to the same product again and the permission is successfully granted.
***
## WooCommerce API Updates:
#### Fix taxes endpoint not returning multiple postcodes/cities
PR: https://github.com/woocommerce/woocommerce/pull/27751
### How to test the changes in this Pull Request:
1. In WooCommerce admin go to Settings - Tax - Standard Rates and create 3 rates: one with no cities or postcodes specified, another one with one city and one postcode, and one with two cities and two postcodes (separate them with a semicolon, `;`).
2. Temporarily add this at the ned of your woocommerce.php file, this way you won't have to bother about REST API authentication: `add_filter('woocommerce_rest_check_permissions', function() {return true;}, 10, 0 );` (note that this will cause a bunch of unit tests to fail)
3. Retrieve the taxes via the `/wp-json/wc/v3/taxes` endpoint and verity that the results are consistent:
For no city and no postcode:
```json
{
"postcode": "",
"city": "",
"postcodes": [],
"cities": []
}
```
For one city and postcode:
```json
{
"postcode": "1111",
"city": "OSAKA",
"postcodes": [
"1111"
],
"cities": [
"OSAKA"
],
}
```
For two cities and postcodes:
```json
{
"postcode": "2222",
"city": "KOBE",
"postcodes": [
"1111",
"2222"
],
"cities": [
"OSAKA",
"KOBE"
],
```