woocommerce/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/982.md

68 lines
4.4 KiB
Markdown
Raw Normal View History

2023-03-22 11:25:10 +00:00
# Testing notes and ZIP for release 9.8.2
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/11039374/woocommerce-gutenberg-products-block.zip)
## WooCommerce Core
### Fix issue that prevented spaces being added to Mini Cart, Cart and Checkout buttons [#8777](https://github.com/woocommerce/woocommerce-blocks/pull/8777)
1. With Firefox, add the Cart block to a post or page.
2. In the editor, press the _Proceed to Checkout_ button to edit the text to something like: _Go to payment_ (or any string containing spaces).
3. Verify the text is updated correctly and spaces are added as expected.
4. Preview the page in the frontend and verify the button text is correct as well.
5. Repeat steps 1-4 with the Checkout and Mini Cart blocks. (For the Mini Cart, you will need to edit its template part)
### Fix Customer Account block doing a 404 request in the frontend [#8798](https://github.com/woocommerce/woocommerce-blocks/pull/8798)
1. With a block theme like [TT3](https://wordpress.org/themes/twentytwentythree/), add the Customer Account block to the header of your site.
2. Go to the frontend and open the _Network_ tab in the browser devtools (<kbd>F12</kbd>).
3. Verify there is no request to `build/customer-account-frontend.js` which returns 404.
### Display the link to add the shipping address when shipping address is not available [#8141](https://github.com/woocommerce/woocommerce-blocks/pull/8141)
#### Case 1 (with no default shipping rates)
<img width="1429" alt="image" src="https://user-images.githubusercontent.com/11503784/214127269-1cb4d478-88b7-4343-b841-96c35300fd6d.png">
1. Go to the WooCommerce settings page: `wp-admin/admin.php?page=wc-settings`.
2. Change 'Default customer location' to `No location by default`.
3. Make sure you have at least one shipping zone with a shipping method available.
4. Remove any default (fallback) shipping rates.
5. Open your site in a private session (incognito mode).
6. Add some products to the cart.
7. Go to the cart page, and confirm the "Add an address for shipping rates" link is present in the shipping calculator.
8. Click on the link, and confirm it is working as expected.
9. Open your site in a regular session where you're already logged in and have placed an order before.
10. Add some products to the cart.
11. Go to the cart page, confirm the shipping address, and "change address" link present in the shipping calculator.
12. Click on the link, and confirm it is working as expected.
#### Case 2 (with default shipping rates)
<img width="1286" alt="image" src="https://user-images.githubusercontent.com/11503784/214127480-f8387749-d45b-41fe-b0d5-db29665eb759.png">
1. Go to the WooCommerce settings page: `wp-admin/admin.php?page=wc-settings`.
2. Change 'Default customer location' to `No location by default`.
3. Make sure you have at least one shipping zone with a shipping method available.
4. Add a default (fallback) shipping rate (don't select any Zone region when creating it).
5. Open your site in a private session (incognito mode).
6. Add some products to the cart.
7. Go to the cart page, and confirm the shipping calculator is hidden and default shipping rates are visible
8. Open your site in a regular session where you're already logged in and have placed an order before.
9. Add some products to the cart.
10. Go to the cart page, confirm the shipping address, and "change address" link present in the shipping calculator.
11. Click on the link, and confirm it is working as expected.
#### Case 3 (Error Notice)
1. Go to the WooCommerce settings page: `wp-admin/admin.php?page=wc-settings`.
2. Change 'Default customer location' to `No location by default`.
3. Make sure you have at least one shipping zone with a shipping method available.
4. Remove any default (fallback) shipping rates.
5. Open your site in a private session (incognito mode).
6. Add some products to the cart.
7. Go to the cart page, and confirm the "Add an address for shipping rates" link is present in the shipping calculator.
8. Click on the link, and change the address to a location where shipping rates are unavailable.
9. Confirm that `There are no shipping options available. Please check your shipping address.` error is visible in the text form.
10. Proceed to the Checkout block page, and confirm the `There are no shipping options available. Please check your shipping address` error is visible in the text form under Shipping options.