9.2 KiB
9.2 KiB
Testing notes and ZIP for release 6.6.0
Zip file for testing: woocommerce-gutenberg-products-block.zip
Feature Plugin
Fix You attempted to edit an item that doesn't exist error on WordPress 5.8 #5425
Test the following under these scenarios:
- WordPress 5.8 and the Gutenberg plugin
- WordPress 5.8 without the Gutenberg plugin
- WordPress 5.9 and the Gutenberg plugin
- Open the FSE editor
- From the sidebar on the left click on Templates.
- Click on one of these templates Product Category Page, Product Archive Page, Product Archive Page or Single Product Page.
- Edit the template and save it.
- Go back (not refresh the page, because you will reproduce a known bug (#5426).
- Reopen the same template and check if the changes are still there.
- Check if the template works correctly on the frontend side too.
Fix modified block templates to have a user friendly Plugin name. #5420
- Modify one of the WooCommerce block templates via the Site Editor. Save it.
- Load the templates screen and ensure the Added By column value says WooCommerce and not woocommerce
- Ensure the modified version of the template loads in the Site Editor and on the frontend.
Check if the current theme has a product-archive block template in the absence of a product taxonomy block template. #5380
Add the following block markup to the following templates so you know which one is getting rendered:
- woo-blocks/archive-product.html
- woo-blocks/taxonomy-product_tag.html
- woo-blocks/taxonomy-product_cat.html
Template:
<!-- wp:paragraph -->
<p>Woo Blocks: [template-filename].html</p>
<!-- /wp:paragraph -->
- Install Gutenberg plugin and Blockbase theme to activate Site Editor and FSE.
- Go to a product category page and check that woo-blocks/taxonomy-product_cat.html is the template being used.
- Duplicate woo-blocks/archive-product.html into blockbase/block-templates/ and change the markup you added above to say "Blockbase" instead of "Woo Blocks" so we can differentiate.
- Reload the product category page, product tag page, and main shop page/product archive page and check that the archive-product.html from Blockbase is being loaded.
- Go into Site Editor > All Templates and check that "Product Archive Page", "Product Category Page" and "Product Tag Page" are all in the list and it states they're being loaded from the Blockbase theme
- Customise the Product Category Page template and save your changes
- Reload the product category page on the frontend and check the customised version of this template is being rendered.
Switch to correct view if inner block is selected #5358
- Insert or edit the Cart block.
- Open the block navigation list panel.
- Ensure the current view is the Filled Cart.
- Select an inner block of the Empty Cart parent block. The view should change to "empty cart".
Fix extra network request on cart #5394
To test this, you must open developer tools and look at the network requests sent.
- View the cart page on the frontend.
- There should be no requests (batch or otherwise) to update customer data once the cart is mounted. Look for calls to the /batch endpoint (filter by XHR requests).
Sync order data with cart data when cart is updated from any route 5379
Ensure you have a store with products and at least 2 shipping methods.
- Add an item to the cart.
- Visit the checkout page.
- In another tab, open admin and view the draft order. Note the shipping method.
- Leave checkout and go to the cart page. Change the shipping method.
- In your admin tab, refresh the order. Confirm the shipping method + totals all updated.
- Smoke test checkout/cart to ensure totals, taxes, items, and fee totals all make sense and change when the cart changes.
Trigger validation on change if the input is not focussed #5373
- In a clean browser session with no address, add an item to the cart.
- Go to Cart block on the front end.
- Open the shipping calculator form and use browser autofill to fill out the address fields.
- Click update - you should see no inline validation errors and shipping rates should update.
Revise checkout payment statuses to avoid data loss on error #5350
This requires Stripe and a saved payment method.
- Go to checkout and select a saved method for payment.
- Leave a required address field blank and try to place an order. Validation errors should be displayed.
- Correct mistake and fill out required fields, then place the order again.
- The order should go through without an error.
Add error message for fetch errors on checkout #5341
- Go to checkout and open network tools (in browser development tools).
- Place an order using an invalid postcode so that an error is returned. Confirm postcode error is shown.
- Right click the checkout/ request in browser tools and block it.
- Place order again and it should give you a network error, for example: "You are probably offline. Please try placing your order again."
Remove legacy shipping_phone handling in the StoreAPI #5326
- Go through the checkout flow with a new address, taking note of your billing and shipping phone number.
- Confirm the address persists to the order.
- Confirm the billing and shipping phone numbers are correct.
Remove full-width mode from cart and checkout block #5315
- Create a test page with the cart block.
- Verify that both the Cart, the Filled Cart and the Empty Cart only show the alignment options None and Wide width.
- Create a test page with the checkout block.
- Verify that only the alignment options None and Wide width are available.
Fix saving WooCommerce templates in WP 5.9 beta 3 (5408)
- With WP 5.9 beta 3 and Gutenberg disabled, go to Appearance > Editor.
- Edit one of the WooCommerce templates and try to save it.
- Verify the template is saved without errors.
- Repeat the process with Gutenberg enabled and verify it works as well.
Fix required scripts not loading for WC block templates. (5346)
- Install a Block Theme such as TT1 and the Gutenberg plugin.
- Load the product page of a variable product.
- Change some of the options (such as colour) on the variable product and check that the image in the product gallery updates to show the correct image for that variant.
- Clicking "Add to cart" should successfully add the product to the cart.
Fix reverting WC templates. (5342)
- With WC 6.0 or later, Gutenberg and a block theme installed, go to Appearance > Editor.
- Go to the Templates page and edit one of the WooCommerce templates (ie: Single Product Page).
- In the frontend, verify the changes you just saved are applied.
- Go back to the Templates page and press on Clear Customizations of the template you just edited.
- Verify there is no error and the changes have been reverted in the frontend.
- Repeat the steps above with WP 5.9 beta without Gutenberg enabled.
Fix WC templates loading for WP 5.9 without Gutenberg plugin. (5335)
- Make sure you have WP 5.9 or above.
- Install a Block Theme such as TT1.
- Make sure you can load the list of Block Templates in the Appearance > Site Editor
Make it so WooCommerce template names are not editable (5385)
- With WC 6.0 beta 3 and a block theme installed, go to Appearance > Editor.
- Go to the Templates page and edit one of the WooCommerce templates (ie: Single Product Page).
- Save and refresh the page.
- Verify the template name is not editable.
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.