10 KiB
10 KiB
Testing notes and ZIP for release 7.6.0
Zip file for testing: woocommerce-gutenberg-products-block.zip
Feature plugin and package inclusion in WooCommerce
Featured Category: Add background color option. (6368)
Prerequisites:
- Use the latest WordPress version (we want to use the site editor / Global Styles in testing).
- Install & use a block theme e.g. Twenty Twenty-Two.
- Deactivate the Gutenberg plugin for testing as we're currently observing this issue.
- Create a new post/page.
- In the editor, add two
Featured Category
blocks. - For each block select the same category, it should have a product picture.
- Select each block and use the Replace button in the block toolbar to add a product image smaller than the Featured Category block (for an example see screenshots above).
- Now select the first
Featured Category
block. In the editor sidebar'sColor
section of the block select aBackground
color. The background color should be visible in the parts not covered by the product image. - Save your post/page.
- In the admin dashboard navigate to
Appearance
>Editor
(/wp-admin/site-editor.php
). - Open the Styles sidebar by clicking the round Styles icon in the top right of the editor.
- In the Styles sidebar navigate to
Blocks
>Featured Category
>Colors
>Background
. - Change the background color and save your changes.
- Navigate back to the post/page you previously created.
- The first block should still show the background color you selected in step 5. The second block should show the Global Styles color you selected in step 10.
- Click
Preview
>Preview in new tab
and confirm the colors appear as expected on the Frontend of your site as well.
Featured Product: Add background color option. (6367)
Prerequisites:
- Use the latest WordPress version (we want to use the site editor / Global Styles in testing).
- Install & use a block theme e.g. Twenty Twenty-Two.
- Deactivate the Gutenberg plugin for testing as we're currently observing this issue.
- Create a new post/page.
- In the editor, add two
Featured Product
blocks. - For each block select the same product, it should have a product picture.
- Select each block and use the Crop tool in the block toolbar to crop the product image smaller than the Featured product block e.g. by setting the aspect ratio to 2:3.
- Now select the first
Featured Product
block. In the editor sidebar'sColor
section of the block select aBackground
color. The background color should be visible in the parts not covered by the product image. - Save your post/page.
- In the admin dashboard navigate to
Appearance
>Editor
(/wp-admin/site-editor.php
). - Open the Styles sidebar by clicking the round Styles icon in the top right of the editor.
- In the Styles sidebar navigate to
Blocks
>Featured Product
>Colors
>Background
. - Change the background color and save your changes.
- Navigate back to the post/page you previously created.
- The first block should still show the background color you selected in step 5. The second block should show the Global Styles color you selected in step 10.
- Click
Preview
>Preview in new tab
and confirm the colors appear as expected on the Frontend of your site as well.
Added media controls allowing the user to edit images within the editor on a Featured Category block. (6360)
- Add the Featured Category block
- Choose either a category with an associated image or select an image for the block through the toolbar
- Click on the “Crop” icon on the toolbar
- Ensure the toolbar controls are now changed and show:
Zoom, Aspect ratio, Rotate | Apply, Cancel
controls - Ensure only the image is now visible instead of the whole block inside the image editor
- Try executing edits and applying them
- Ensure the image turns semi-transparent and a loading spinner shows in the image
- Ensure the block now shows your edited image
- Click on the “Crop” icon again
- Click away from the block
- Ensure the block exits “Edit mode”
Added media controls allowing the user to edit images within the editor on a Featured Product block. (6348)
- Add the Featured Product block
- Choose a product with an image or select an image for the block through the toolbar
- Click on the “Crop” icon on the toolbar
- Ensure the toolbar controls are now changed and show:
Zoom, Aspect ratio, Rotate | Apply, Cancel
controls - Ensure only the image is now visible instead of the whole block inside the image editor
- Try executing edits and applying them
- Ensure the image turns semi-transparent and a loading spinner shows in the image
- Ensure the block now shows your edited image
- Click on the “Crop” icon again
- Click away from the block
- Ensure the block exits “Edit mode”
Add the alt text control to the Featured Category block media settings. (6341)
- Create a new page and add a
Featured Category
. - On the block settings go to
Media Settings
and check theAlt text
textarea appears empty. - Add an
alt
text, save the block and check it renders on the frontend with the specifiedalt
text. - Edit the block again, remove the
alt
text and save it. - Check the
alt
rendered on the frontend corresponds to the category name.
Hide the Product Tag Cloud from the Widgets screen in classic themes. (6327)
- With a classic theme (ie: Storefront), go to Appearance > Widgets.
- Open the block inserter and make sure the Product Tag Cloud (isn't showing up)
Add the alt text control to the Featured Product block media settings. (6308)
- Create a new page and add a
Featured Product
. - On the block settings go to
Media Settings
and check theAlt text
textarea appears empty. - Add an
alt
text, save the block and check it renders on the frontend with the specifiedalt
text. - Edit the block again, remove the
alt
text and save it. - Check the
alt
rendered on the frontend corresponds to the product name.
GridContentControl: Add product image control. (6302)
- Activate a block theme, like Twenty Twenty Two
- Create a new page, and add all the aforementioned, affected blocks (Handpicked Products etc.)
- Hand-picked Products
- Products by Tag
- Products by Attribute
- Products by Category
- Best Selling Products
- Newest Products
- On Sale Products
- Top Rated Products
- Check if the Product image toggle is present under Content
- Verify that the toggle shows/hides product Images both in the editor and the frontend
Remove the Template panel from the Setting Sidebar for Shop page. (6366)
- Active Twenty Twenty-Two.
- Make sure WooCommerce is setup (WC pages are installed).
- Edit the Shop Page, don't see the Template panel.
- Edit other pages, see the Template panel as normal.
Parse categories coming from the back-end as a json array. (6358)
- Create two products assigned to two different categories and add one review to each of them.
- Create a new page and add a
Reviews by Category
block. - Select only one category on the block (corresponding to one of the previous products/reviews) and save it.
- Check that it renders the expected reviews only on the edit mode.
- Publish the page, go to the frontend and check it renders the same expected reviews.
- Edit the block and select multiple categories.
- Check that it renders the expected reviews only on the edit mode.
- Update the page, go to the frontend and check it renders the same expected reviews.
- Edit again the block and deselect all the categories.
- Check that it renders all the reviews only on the edit mode.
- Update the page, go to the frontend and check it renders also all the reviews.
Fix: Mini Cart block is not available from the Edit template screen. (6351)
- With Twenty Twenty-Two, add the Mini Cart block to the header template part.
- Edit a page using Block Editor.
- From the Page sidebar, edit the template.
- Notice the Mini Cart block works as expected.
Fix Filter Products by Attribute block not working on PHP templates when Filter button was enabled. (6332)
- With a block theme, go to Appearance > Site Editor.
- Go to Templates and edit the Product Catalog template.
- Above the WooCommerce Classic Template block, add the Filter Products by Attribute block (making sure you only have one Filter Products by Attribute block) and set its Filter button attribute to true.
- In the frontend, filter by attribute.
- Verify the page reloads and the filter is applied.
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.