Testing notes and ZIP for release 11.0.0
Zip file for testing: woocommerce-gutenberg-products-block.zip
WooCommerce Core
Enhancements
Enable Product Collection as a core feature #10524
This PR enables a block that's been developed for a couple of months. Product Collection includes many functionalities and each of the changes at the moment of merging the particular functionalities. I don't think we should test ALL of them again, especially since the testing steps would be unreadable. However, I believe the major paths should be re-tested.
In some cases, I linked PRs. In that case, please refer to the testing scenarios from respective PR:
Major scenarios
Inserting
- This PR should be tested in production build, so use
npm run build:deploy
if you test locally. Ignore this step when testing plugin as a whole.
- Go to Editor
- Type "Product Collection" and "Products (Beta)"
- In both cases Product Collection (Beta) should appear in the inserter
- Try to insert it
- It should appear correctly in the Editor
- Save and make sure it displays correctly in the Frontend
Inherit from query template
- Open the Editor and navigate to the "Product Search Results"
- Replace the existing 'Classic Template' block with the 'Product Collection' block.
- After the 'Product Collection' block is successfully inserted, ensure that the 'Inherit query from template' option is enabled by default.
- Save the changes.
- Navigate to the frontend of your website. You can emulate a search for "shirt" by visiting the URL "/shop?s=shirt". Confirm that the search query
shirt
effectively displays related products.
- Head back to the Editor.
- In the 'Product Collection' block, deactivate the 'Inherit query from template' option.
- Subsequently, you should observe various settings and filters available in the inspector controls. Modify these filters and settings as required and validate immediately that the changes are visible within the Editor.
- Save your modifications and return to the frontend of your website.
- Ensure that the adjustments made to the 'Product Collection' block within the Editor are accurately displayed on the frontend of your website.
Filters
- Add Product Collection and Products (Beta) block side by side
- Disable "Inherit query from template" in both
- Set of filters should appear in the Inspector Controls
- Play around with the filters setting up the same conditions in both cases (be aware Product Collection offers more filters than Products (Beta), so you may not be able to recreate all of the scenarios in Products (Beta) block)
- Treat Products (Beta) block as a reference - the results in product grid should be the same in both cases. We look for discrepancies between blocks. Keep in mind in some scenarios filters may be mutually exclusive or there may be some existing bugs. If they occur in both blocks, feel free to report it but it's not a blocker to release Product Collection.
Global Styles
- Add Product Collection and Products (Beta) block side by side
- Play around with the Global Styles of Product Collection/Products, Product Template and particular Product Elements.
- As in case of Filters we look for discrepancies between blocks. If there's bug that occur in both blocks, feel free to report it but it's not a blocker to release Product Collection.
Product Elements
- Make sure you're able to add all of the following blocks in Product Template of Products Collection
- Product Image
- Product Title
- Product Price
- Product SKU
- Product Summary
- Product Rating
- Product Stock Indicator
- On sale badge
- Add to Cart Button
Others - play with it
- Play with Product Collection as you would as a merchant. Test it, try to break it. Think of stuff we didn't think of and try it out!
Enable manual migration of Products to Product Collection #10655
- Go to Editor and add at least two Products (Beta) block
- In one of them disable "Inherit query from template" and apply some advanced filters, for example, "Handpicked products"
- Focus on either of the Products (Beta) block
- Expected: There's an Upgrade Notice in Inspector Controls
- Click "Upgrade to Product Collection"
- Expected: all Products (Beta) blocks should be replaced with Product Collection blocks preserving the block settings (filters)
- Create a new post
- Insert the Large Footer, Large Footer Dark, Simple Footer and the Simple Footer Dark patterns
- Make sure the size of the My Account text is the same when compared with other texts in the footer (as demonstrated in the "After" column in the description of this PR).
- Publish the post and make sure the patterns are correctly displayed on the FE as well.
Testimonials Single Pattern > Update the image format and content width #10600
- Create a new post
- Insert the Testimonials Single Pattern
- Make sure the pattern is correctly displayed in the editor
- Save the post and head over to the front end: make sure the pattern is correctly displayed both on desktop and mobile view (the layout should match the one demonstrated in the above screenshots in the After column).
Bug Fixes
Fix UI misalignment of Filter by Price in TT1 theme #10732
- On TT1 theme
- Create new post
- Add Filter by Price and Products (Beta) so filter is displayed
- Make sure it looks like on screenshots (nice UI alignment) and they're functional (change values)
- Repeat on TT2 and TT3 to make sure they stayed untouched
- Check on Chrome, Firefox, Safari
Before |
After |
|
|
Make View Cart link displayed below the Add to Cart button #10675
- Edit Product Catalog template
- Add Products (Beta) block if it's not there already
- Save and go to frontend
- Add a simple product to cart
- Expected: "View Cart" link appears BELOW the Add to Cart button
Before |
After |
|
|
Store Breadcrumbs block: Fix icon color when block is selected in List View #10652
- From your WordPress dashboard, 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 > 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.
- On the top-right side, click on the Save button.
- On the left side, check the List View and select the 'Store Breadcrumbs' block. Make sure the icon changes it's color from a dark color to a white color when the block is selected on the list
Before |
After |
|
|
Dispatch the wc-blocks_render_blocks_frontend event when rendering the empty cart block #10619
- Add the Cart block and switch to the Empty Cart edit mode.
- Replace the Newest products block with the All Products block.
- View the page in the frontend.
- Verify all blocks render correctly when the cart is empty. Try adding a product to the cart (so it switches to the Full Cart view) and removing it (so it switches back to the Empty Cart view). Verify the blocks still render correctly.
Remove client side navigation from Products beta block #10636
- Create a new post
- Add Products (Beta) block & publish it
- On Frontend, verify that
- Client-side navigation isn't there anymore i.e. changing the page should also refresh the page
- Verify that Product button(Add to cart) still works as expected.
Should be tested by the development team exclusively
Bug Fixes
Refactor block variation registration in product-collection #10701
- Since the issue was reproducible in Production build, so run
npm run build:deploy
to create a production build
- Create a new post.
- Insert a 'Product Collection' block.
- Ensure you can include a 'Product Summary' block within it using the block inserter.
- Upon adding the 'Product Summary' block, publish the post and check that the 'Product Collection' block is displayed accurately on the frontend.
Fix "On sale" badge class #10634
Before |
After |
|
|
- Checkout to the PR branch and run
npm run start
.
- Enable a blocks theme (like TT3).
- Create a new page or post.
- Add the Products (Beta), Products Collection, Products by Attribute, Products by Tag, Products by Category, Handpicked products, and All products blocks.
- Check the Sale badge is shown on the top-right corner of the image on all of them, in the editor, and in the frontend.
- Go to the classic shop page and check the Sale badge also shows in the top-right corner of the product image.
- Repeat steps 3 to 6 with Storefront enabled.