From 48b9a46b3c82d1aa5a81a5afa0783a111c5c1dbb Mon Sep 17 00:00:00 2001 From: Tam Mullen Date: Tue, 28 Jul 2020 12:19:00 +0100 Subject: [PATCH] Updated Release Testing Instructions WooCommerce 4.4 (markdown) --- ...se-Testing-Instructions-WooCommerce-4.4.md | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Release-Testing-Instructions-WooCommerce-4.4.md b/Release-Testing-Instructions-WooCommerce-4.4.md index d87646b..3688848 100644 --- a/Release-Testing-Instructions-WooCommerce-4.4.md +++ b/Release-Testing-Instructions-WooCommerce-4.4.md @@ -152,5 +152,64 @@ Testing means ensuring there are no visual regressions in the affected blocks: ## Notable Bug Fixes +### 1. Fix the visibility of partially out of stock variable products when using the layered nav widget (#[26260](https://github.com/woocommerce/woocommerce/pull/26260)) + +1. Go to Settings > Products > Inventory, mark "Hide out of stock items from the catalog". +2. Create an attribute named "Color", with the following terms: Black, Brown, Blue, Green, Pink. +3. Create the following variable products: Big shoes, Medium shoes, Small shoes, Kid shoes. Create variations for all the existing colors on all of them. Assign any regular price to all the variations. (Hint: create one product, then duplicate) +4. Modify the products so the following variations are in stock and the others are out of stock: +* Big: black, brown. +* Medium: blue, brown. +* Small: blue, green. +* Kids: green, pink. +5. Add the "Filter by attribute" widget, filtering by color with OR. +6. Try filtering by one or two colors and verify that the results make sense. For example when filtering by "blue" you should see only "Medium shoes" and "Small shoes" (without the fix you would see all four shoe types). Verify also that the results count that appear at the beginning and the end of the list is correct. +7. Change the widget filtering type to AND and try different combinations again. Verify that selecting pink and black displays the "No products available" message. + +#### How to test the counters + +With the same setup, verify that the counters display the following, no matter what attributes you select in the widget: + +![image](https://user-images.githubusercontent.com/937723/81082993-4b04ed80-8ef4-11ea-8d0d-6e8c5a14d432.png) + +Now make sure that nothing is selected, then go and change the widget operator to AND. Reload the products page and verify that the behavior is the same. + +#### Testing counters with multiple attributes + +1. Create an attribute named "Style" with two terms: Classic, and Sport. +2. Modify all the products so that all of them use the new style for variations, but leave the value for all variations as "Any style". +3. Modify the Big shoes product so that the Black variation is Classic, and create a new variation that is Black Sport (leave both in stock). +4. Modify the Medium shoes product so that the Brown variation is Sport (and still has stock). +5. Add the "Filter by attribute" widget, filtering by style with any logic. +6. Reload the page and verify that the counters now appear like this: + +![image](https://user-images.githubusercontent.com/937723/87396534-42dfc300-c5b3-11ea-8bb0-7f040e5c2206.png) + +Note how there are two variations listed for Black, since we added a new one to the Big shoes. Also note how the two classic variations and the single sport variation are listed in the style filter. + +7. Select "Black" in the color filter and note how the style filter now displays a value of 1 for classic and 1 for sport, since there's one visible variation of each. +8. Unselect all and select "Blue" in the color filter and note how the style filter disappears, since there's no variation that is blue and has a style associated. +9. Unselect all in the color filter and select "Sport" in the style filter, you will see this: + +![image](https://user-images.githubusercontent.com/937723/87396197-c1883080-c5b2-11ea-9720-7e86fe4d298f.png) + +#### Testing visibility with multiple filters + +While testing counters with multiple filters you may have noticed that regardless of what filters you selected in the style filter you were still seeing all the products in the catalog (if you don't filter by color). That's because all of the products have visible variations with "Any style" and thus they always match the style filter. + +Modify the "Kid shoes" product so that all the variations have the sport style, then select "Classic" in the style filter while not filtering by color, and you'll see that the product disappears from the catalog. + +### 2. Fix stock status saving for variable products on bulk and quick edit (#[26174](https://github.com/woocommerce/woocommerce/pull/26174)) + +1. Create a variable product with two variations. Set stock status to "Out of stock" for one of them and to "On backorder" for the other. +2. Bulk edit the product, don't change anything and save. Verify that the stock status of the variations hasn't changed (without the fix, both would have changed to "In stock"). +3. Bulk edit the product again, se the stock status selector to "In stock" and save. Verify that this time the status of both variations has changed. +4. Change the stock status of both variations to anything but "In stock" again. +5. Quick edit the product. Verify that the preselected value for the stock status selector is now "No change". Leave it that way and save. Verify that the stock status of the variations hasn't changed. + +![image](https://user-images.githubusercontent.com/937723/79217826-c58ba180-7e4f-11ea-8196-b7e6b3ec1a87.png) + +6. Quick edit the product again. Select "In stock" in the stock status selector. Verify that this time the status of both variations has changed. + ***