16 KiB
16 KiB
Testing notes and ZIP for release 10.3.0
Zip file for testing: woocommerce-gutenberg-products-block.zip
WooCommerce Core
Only show the Mini Cart count badge when there are items in the cart #9259
- Add the Mini Cart block to the header of your store.
- In the frontend, with an empty cart, verify the count badge is not visible. Verify you can open and close the Mini Cart drawer and the badge is still not visible.
- Now, add some products to your cart and verify the badge becomes visible. Try reloading the page and verify the count badge is still there.
Store API: Fix payment method validation (fixes COD) #9375
- Enable Cash on Delivery as a payment method
- Make sure "enable for shipping methods" is blank, and 'accept for virtual orders" is off
- Add an item to your cart and checkout, selecting COD as the payment method
- Place order successfully
Styling fixes for form step headings #9437
- Install and activate a block theme, e.g. Twenty Twenty-Three.
- Go to WP Admin » Appearance » Editor.
- Open the Styles sidebar.
- Increase the font size for headings from the Typography settings.
- Go to the Checkout block page editor.
- View the form step headings - check that the bottom of the text is not cut off
Product Gallery Block > Remove global variable overwrite and keep support for the Single Product Block. #9475
- While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard, and on the sidebar, click on "Appearance > Editor".
- Select the Single Product template to customize it and click on edit.
- If you are still not using the blockified version of the template, click on “Transform into blocks” first to ensure all blocks are in place.
- Make sure the Product Gallery block is available for usage on the inserter (you can remove/add the block from the template), add it, and save.
- On the front end, ensure the block works as expected and the product can be added to the cart.
- Now create a new post and add the Single Product Block to it.
- Save the post and head over to the FE: make sure the Gallery Block is properly displayed on the post without any problems.
Fix compatibility between the checkout block and the template editor. #9495
- Ensure the latest version of Gutenberg is installed. This is required to reproduce the issue.
- Go into the template editor - Appearance > Editor > Templates
- Insert the Cart block within any template e.g. the page template
- Confirm that the preview shows:
- payment methods and shipping methods
- cart image previews
Update Mini-Cart block editor sidebar #9420
- Add the Mini-Cart block to the header of your site.
- Click on the block and open the editor sidebar.
- Verify the strings from the design below match the UI (note: it's expected that some options from the design are still not implemented, just focus on the strings of the options that exist in both screenshots):
Design | Actual |
---|---|
Add to Cart Button > Update block registration to rely on metadata and enable usage for the Single Product Block #9404
- Create a new Post
- Add the Products (Beta) Block
- Within the Products (Beta) Block, make sure the "Add to Cart button" block is listed in the inserter and add it.
- Save the post and head over to the frontend: make sure the button is correctly displayed and when you click on it, the correct product is added to cart.
Fix alignment issue with 'Add Coupon Code' button in WooCommerce Blocks (#9391) #9392
- Go to
/wp-admin/options-general.php
and selectDeutsch
as the site language. - Go to
/wp-admin/update-core.php
and fetch the available translations. - Create a test page with the Checkout block.
- Go to the frontend.
- Add a product to the cart.
- Go to the test page with the Checkout block.
- Verify that the "Gutscheincode oder Rabattcode hinzufügen" button is correctly aligned (aligned left with the same intent on both lines when wrapped)
Improve transform classic product template UX #9386
- Open the Single Product Template.
- Be sure that the description is: "Transform this template into multiple blocks so you can add, remove, reorder, and customize your single product template (for other templates, this should correspond to the name of the template)."
- Hover the button "transform into blocks".
- Ensure the preview corresponds to the "blockified template".
- Click the button.
- Ensure that the group block around the blockified product is selected.
- Ensure the snackbar is visible and the undo button works correctly.
Add color and typography styles on the mini cart title block #9382
- Install and activate the Twenty Twenty-Three theme
- Go to Appearance > Editor > Template parts > Mini Cart
- Select the
Mini Cart Title
block and add some customizations on the settings sidebar (colors, typography). - Check if the customizations are applied in the editor and in the frontend of the website.
- Set country to something with an optional postcode, e.g. Vietnam
- Try to checkout with the field empty, it should pass fine.
Fix Checkout block stepped sections numbers overlapping #9497
- Go to the Checkout block in the page editor.
- Click on an inner block.
- Make sure stepped checkout is enabled
- Confirm the block selection frame is not overlapping with the section number.
Product Meta block: Remove the fill color of the icon and move it to the Icons library, Product Details block: Remove the fill color of the Product Details icon and move it to the icons library (#9506 and #9503)
- In WP Admin, go to Appearance > Themes. Make sure you have a block-based theme installed and activated. If not, you can install one from the Add New option. Block-based themes include "Twenty-twenty Two," "Twenty-twenty Three", etc.
- On the left-hand side menu, click on Appearance > Editor. This will open the Site Editor.
- On the left-hand side menu, click on Templates. This will open the list of available templates.
- Find and select the Single Product template from the list.
- When the Classic Product Template renders, click on Transform into Blocks. This will transform the Classic template in a block template if you haven't done it before.
- Inside the Site editor, click on the List View button, usually found at the top left of the editing space, to see the list of blocks added to the editor area.
- In the list of blocks, click on the Product Meta block. Make sure the icon change its default color from black to white when selected.
- In the list of blocks, click on the Product Details block. Make sure the icon change its default color from black to white when selected.
Update Mini-Cart block logic to use isSiteEditorPage util #9501
- Create a post or page.
- Add the Mini Cart block and select it.
- Verify in the sidebar there is no Mini-Cart in cart and checkout pages toggle.
- Now go to the Site Editor (Appearance > Editor).
- Add the Mini Cart block to the header of your theme.
- Verify in the sidebar there is a Mini-Cart in cart and checkout pages toggle.
- Now change to a classic theme (ie: Storefront).
- Go to Appearance > Widgets and add the Mini Cart block to a widget area.
- Verify in the sidebar there is no Mini-Cart in cart and checkout pages toggle.
Prevent QuantitySelector stealing focus on page load #9487
- Add one product to your page, making sure you only have one item of that product.
- Go to the Cart page (with the Cart block).
- Verify the quantity field input doesn't get the focus on page load.
Allow Shipping method prices to inherit global styles text color #9456
- Install and activate a block theme, e.g. Twenty Twenty-Three.
- Create a test page with the Checkout block.
- Create a test page with the Cart block.
- Go to WP Admin » Appearance » Editor.
- Open the Styles sidebar.
- Adjust all Color settings.
- Confirm shipping method price color also gets change.
Render Product Details block when used along the Post Content block #9479
- Edit the Single Product Template.
- Migrate to the Blockified Template by clicking the button:
Transform into blocks
. - Add the
Post Content
as first block of the main group block. - Save.
- Visit a Product page.
- Ensure that the Product Details block and Post Content block are visible.
Mini Cart: stop using Modal component #9345
- Add the Mini Cart block to the header of your site via (Appearance > Editor).
- In the frontend and with the Cart empty, open the Mini Cart drawer, verify you can open and close the drawer without problems.
- Add some products to your cart and open the Mini Cart drawer again. Verify you can open and close it, you can change the products quantity, etc.
- Go to Appearance > Editor > Template Parts > Mini Cart and change some of the styles of the inner blocks. For example, add a custom background, border and width to the Mini Cart Contents block.
- Repeat step 3.
Now, let's test that things keep working if there are two Mini Cart blocks in the same page. We don't officially support it, but at the same time we don't want the experience to be broken.
- create a post or page and add the Mini Cart block.
- Open that post/page in the frontend. You should now have two Mini Cart buttons in the screen, the one from the site header and the one from the post/page.
- Verify both buttons work as expected.
Global Styles: Fix radio control overlap when font-size is small #9436
- Install and activate a block theme, e.g. Twenty Twenty-Three.
- Create a test page with the Checkout block.
- Go to WP Admin » Appearance » Editor.
- Open the Styles sidebar.
- Adjust the font-size from the typography settings. Reduce the font size to 0.8.
- Go to the Cart and Checkout block page.
- Confirm Radio buttons are not overlapping with the labels.
Patterns
Update Hero Product – Split
Pattern Color Settings #9433
- Activate a block theme (TT3).
- From the editor, insert the
Hero Product – Split
pattern (under the WooCommerce section). - Confirm the text area has a black background, a white heading, and a white button with black text.
- Switch to another block theme and repeat steps 2-3.
- Confirm there is no change in colors on the pattern, by default.
- Confirm it is possible to update the color settings in the editor.
[Pattern] Add new Hero product chessboard
pattern #9180
- Create a new page or post
- Make sure the
Hero product chessboard
pattern appears under the WooCommerce category dropdown. - Insert in and make sure it shows as expected on the design.
Add new Product listing with gallery
pattern #9347
- Create a new page or post
- Make sure the
Product listing with gallery
pattern appears under the WooCommerce category dropdown. - Insert in and make sure it shows as expected on the design.
Add Product Details: product listing pattern #9383
- Create a new post
- Insert the new "Product Details: product listing" as demonstrated on the screencast
- Make sure the pattern is properly displayed on the Editor side without any errors in the console
- Make sure the pattern is also displayed on the frontend without any problems
Add new Product collections: featured collections
pattern #9388
- Create a new page or post
- Make sure the
Product collections: featured collections
pattern appears under the WooCommerce category dropdown. - Insert in and make sure it shows as expected on the design.
Add product details pattern #9408
- Add a page/post and use the block inserter and go to Patterns->WooCommerce->Product Details Pattern.
- Ensure you see the preview like the screenshot above and add it to the page/post.
- Ensure it looks like the design in the screenshot.
- Save/update and go to the frontend and ensure it displays the same as well.
Add banner pattern #9434
- Add a page/post and use the block inserter to add the
Banner
pattern by going to patterns->woocommerce->Banner - Ensure the preview shows nicely per the screenshot above.
- After adding the pattern to the page/post, publish/update and view it in the frontend and ensure it displays as what you saw in the preview.
Add to Cart with Options block > Restore the global variable to its original value after being overridden #9581
- While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard and on the sidebar, click on "Appearance > Editor".
- Select the Single Product template to customize it and click on edit.
- If you are still using the Classic template, click on the button to transform it to the blockifyed version.
- Make sure the Add to Cart with Options block is available for usage on the inserter (you can remove/add the block from the template), add it, and save.
- On the frontend, ensure the button works as expected, and the product can be added to the cart.
- Access the single template for all available product types, including simple, variable, grouped, and external and make sure you can add all of them to the cart.