|
| 1 | +## Testing notes and ZIP for release 4.0.0 |
| 2 | + |
| 3 | +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/5597018/woocommerce-gutenberg-products-block.zip) |
| 4 | + |
| 5 | +## Feature plugin and package inclusion in WooCommerce core |
| 6 | + |
| 7 | +### Input appearance in IE 11 (Create IE11 SCSS mixin) |
| 8 | + |
| 9 | +Setup: |
| 10 | + |
| 11 | +* Create a Products Block, Filter by Price Block, and Checkout Block. |
| 12 | + |
| 13 | +Testing: |
| 14 | + |
| 15 | +- [ ] With IE11, check that there are no visual regressions in the Filter products by price block. |
| 16 | +- [ ] With IE11, check that there are no visual regressions in the checkboxes of the Checkout block. |
| 17 | + |
| 18 | +See screenshots in https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3473. |
| 19 | + |
| 20 | +## Feature plugin only |
| 21 | + |
| 22 | +### Fix notice close button color in Twenty Twenty One dark mode |
| 23 | + |
| 24 | +Setup: |
| 25 | + |
| 26 | +* Install and activate Twenty Twenty One. |
| 27 | +* Go to Customize > Colors & Dark mode and check the Dark mode support checkbox. |
| 28 | +* In the frontend, make sure the dark mode is enabled and go to a page with the Checkout block. |
| 29 | + |
| 30 | +Testing: |
| 31 | + |
| 32 | +* [ ] Try submitting the form leaving one of the required inputs empty so the error notice appears. |
| 33 | +* [ ] Verify the close button is visible. |
| 34 | + |
| 35 | +### Ensure correct alignment of checkout notice's dismiss button |
| 36 | + |
| 37 | +Setup: |
| 38 | + |
| 39 | +* Enable Storefront theme |
| 40 | +* Add an item to the cart and go to the checkout block |
| 41 | + |
| 42 | +Testing: |
| 43 | + |
| 44 | +* [ ] Leave a required field on the checkout form blank and attempt checkout |
| 45 | +* [ ] Ensure the error notice's dismiss button is aligned to the right |
| 46 | + |
| 47 | +See screenshot in https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3455. |
| 48 | + |
| 49 | +### Fix notices in console on Checkout (Update @wordpress/components to v. 11.1.1 and @wordpress/base-styles to v. 3.2.0) |
| 50 | + |
| 51 | +Setup: |
| 52 | + |
| 53 | +* Add the checkout block to a page. |
| 54 | +* Add an item to your cart, and go to checkout. |
| 55 | + |
| 56 | +Testing: |
| 57 | + |
| 58 | +* [ ] Change the value of the Country/Region select. |
| 59 | +* [ ] Verify no errors appear in the browser console. |
| 60 | + |
| 61 | +### Checkout block: Fixes around account creation and coupon validation |
| 62 | + |
| 63 | +Setup: |
| 64 | + |
| 65 | +* Create a coupon with a usage requirement of a specific email address. |
| 66 | +* Enable registration during checkout. |
| 67 | +* Add the checkout block to a page. |
| 68 | +* Add an item to your cart, apply the coupon, and go to checkout. |
| 69 | + |
| 70 | +Testing: |
| 71 | + |
| 72 | +* [ ] Fill out the checkout form, and indicate that you would like to create an account. Use an email address different to the coupon restriction. Submit the form. |
| 73 | +* [ ] Confirm a coupon error appears, and the create account signup box is hidden. |
| 74 | +* [ ] Submit the form again. Order should go through without error. |
| 75 | + |
| 76 | +### Remove held stock for a draft order if an item is removed from the cart |
| 77 | + |
| 78 | +Setup: |
| 79 | + |
| 80 | +* Setup a stock managed item with 1 in stock |
| 81 | +* Add that 1 item to the cart |
| 82 | +* Go to checkout |
| 83 | +* Go back to the cart and remove the item from your cart |
| 84 | + |
| 85 | +Testing: |
| 86 | + |
| 87 | +* [ ] From another device or in another browser, add the same item to the cart. No stock errors should be shown. |
| 88 | + |
| 89 | +### Make sure cart is initialized before the CartItems route is used in the Store API |
| 90 | + |
| 91 | +Setup: |
| 92 | + |
| 93 | +You need to use the StoreAPI. Add an item to your cart via the API (replacing the product ID with one from your store). |
| 94 | + |
| 95 | +POST `https://yourstore.test/wp-json/wc/store/cart/add-item` |
| 96 | + |
| 97 | +``` |
| 98 | +{ |
| 99 | + "id": 163, |
| 100 | + "quantity":1 |
| 101 | +} |
| 102 | +``` |
| 103 | + |
| 104 | +Testing: |
| 105 | + |
| 106 | +* [ ] GET the following endpoint: `https://yourstore.test/wp-json/wc/store/cart/items`. There should be a valid response with response code 200. |
0 commit comments