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

21 KiB
Raw Blame History

Testing notes and ZIP for release 10.6.0

Zip file for testing: woocommerce-gutenberg-products-block.zip

WooCommerce Core

Add Cart/Checkout/Order-Received Templates #9301

  1. On a new WooCommerce installation take note of the contents for Cart and Checkout pages
  2. Enable a blocks theme eg. Twenty Twenty Three
  3. Go to Appearance > Editor > Template Parts and verify the existence of Checkout Header template part
  4. Verify that you can edit, save, and changes persist
  5. Go to Appearance > Editor > Templates and verify the existence of Cart, Checkout and Order Confirmation templates
  6. Verify for Cart and Checkout templates that the content matches the one noted in step 1.
  7. Go to Appearance > Editor > Templates > Manage all templates and verify the Cart and Checkout show "Customized"
  8. Edit said templates, save, and verify that changes persist.
  9. Make a test purchase. Verify that the views for Cart, Checkout and Order Confirmation contain the new templates
  10. Clear the "Customized" state for Checkout and make a new test order. Verify that no footer is present, and the header is the Checkout Header template part
  11. Go to WooCommerce > Settings > Advanced and verify that for Cart and Checkout we have a freeform endpoint textbox, as opposed to the old page selection dropdown
  12. Edit and save them, and verify that a new checkout flow displays Cart and Checkout on the newly chosen endpoints

Add/attributes filter count display toggle #9833

  1. Before checking out this branch add post/page and test the following blocks Filter by Attributes, Filter by Stock and Filter by Rating along with Products (beta) block. Just leave all default settings and publish post/page.
  2. Now checkout this PR and load the post/page you created in step 1 and ensure there are no block validation errors in the console.
  3. Add the 3 blocks again. Check that in each of the blocks, Display product count option is set to false/off.
  4. Ensure you can toggle Display product count and it will hide/show the product counts in editor and frontend.

Banner pattern: improve spacing and centering in responsive designs #9877

  1. Create a new page or post.
  2. Insert the Banner pattern and save.
  3. Go to the front end and check the pattern looks like the screenshots below in all the different screen sizes.
Screenshot 2023-06-19 at 12 23 41 Screenshot 2023-06-19 at 12 23 49
  1. Create a new page or post.
  2. Insert the Hero Product - Split pattern and save.
  3. Go to the front end and check the Shop now button links to the shop.

Make use of product search #9890

  1. Add the following patterns to a post/page WooCommerce Essential Header | Dark, WooCommerce Essential Header, WooCommerce Large Header | Dark and WooCommerce Large Header.
  2. Ensure you see a search bar that searches products.
  3. Check this on the frontend as well.

Update Hero Product 3 Split pattern with opinionated button styling and margin adjustments #9893

  1. Add Hero Product 3 Split pattern to a post/page.
  2. Check that the Shop Now button has a specific background/text color. Test with a block theme like TT3 and make sure the button is white and text is black.
  3. Check in the front end and reduce the browser viewport to smallest possible and ensure the block of text in the area of the black background that there are margins all around so it is not bumping up to the edges.
  1. Create a new page or post.
  2. Insert the Featured Products 5-item grid pattern.
  3. Change the screen size to a smaller viewport and check the pattern looks like the image below (there's no whitespace at the right of the image).

Shop by Price pattern: add price filters to buttons #9915

  1. Create a new page or post.
  2. Insert the Shop by price pattern and save.
  3. Go to the front end and check the pattern looks like the image below.
  4. Check that the link inside each of the squares corresponds to its title (highest rated filters by rating, under $X filters by price, etc).
  5. Check that the link under each of the squares is the same as the one in the title.
Screenshot 2023-06-20 at 16 34 27

Use the single product block on the Hero Product pattern #9935

  1. Create a new page or post.
  2. Insert the Hero product pattern and save.
  3. Check that the pattern is using the Single Product block and has a default product selected.
  4. In the front end, check the pattern looks like the image below.
Screenshot 2023-06-21 at 14 17 30

Add new Discount banner with image pattern #9957

  1. Create a new post or page.
  2. Insert the Discount banner with image pattern and save.
  3. In the front end, check the pattern looks like the image below and the Shop now button links to the shop page.

Add new Product collection banner pattern #9953

  1. Create a new post or page.
  2. Insert the Product collection banner pattern and save.
  3. In the front end, check the pattern looks like the image below and the Shop now button links to the shop page.

Add new Small discount banner with image pattern #9947

  1. Create a new post or page.
  2. Insert the Small discount banner with image pattern and save.
  3. In the front end, check the pattern looks like the image below and the links go to the shop page (the image is different because I used one of the images already included in the plugin).
Screenshot 2023-06-22 at 09 32 04

Add new Discount banner pattern #9936

  1. Create a new post or page.
  2. Insert the Discount banner pattern and save.
  3. In the front end, check the pattern looks like the image below and the Shop now button links to the shop page.
Screenshot 2023-06-21 at 15 31 03

Remove attributes data from save function for active filters #10047

  1. Log in to your WordPress dashboard.
  2. Create a new post / page.
  3. Click on the "+" button in the top left corner of the editor to add a new block. Search and add the following blocks to the editor: Products (beta), Active Filters and some filter block like the Filter by attributes.
  4. On the top-right side, click on the Save button.
  5. Visit the post/page that you just created and check that Active Filters block is working correctly when choosing different options from the Filter by Attributes block

Remove attributes data from save function for filter by price #10039

  1. Log in to your WordPress dashboard.
  2. Create a new post / page.
  3. Click on the "+" button in the top left corner of the editor to add a new block. Search and add the following blocks to the editor: Products (beta) and Filter by Price.
  4. On the top-right side, click on the Save button.
  5. Visit the post/page that you just created and check that filter by price is working correctly and changes made to it is reflected on the Products (beta) block.

Add size settings to the Product Image block #10034

Product Image settings

  1. Create a new page or post.
  2. Insert the Single Product block.
  3. Click on the Product Image block and open the settings sidebar.
  4. Check the Image size settings are shown in the sidebar.
  5. Change the settings and check the changes are properly reflected on the editor and in the front end, after saving.

Product Hero pattern

  1. Insert the Product Hero pattern.
  2. Click the image and check the block used is the Product Image.
  3. Save and check in the front end that the patterns renders fine.

Add to Cart with options block > Remove opinionated style for the price list in grouped products. #9988

  1. Make sure you have a block theme enabled, such as Twenty-twenty three.
  2. Head over to Edit Site > Templates > Single Product
  3. Make sure you have the blockyified version of this template up and running: if you don't, click on the "Transform into blocks" button and save.
  4. Now on your site's FE, access any grouped product (such as Logo Collection)
  5. Ensure the prices in the list are displayed with a smaller font size as demonstrated on the screenshot.
Before After
Screenshot 2023-06-26 at 12 33 18 Screenshot 2023-06-26 at 12 32 15
  1. Install Back in Stock Notifications plugin.
  2. Visit an out-of-stock product.
  3. Click the “Notify me” button.
  4. Confirm the notice banner link is displayed correctly.

image

Consistent Pattern Titles #9814

  1. Log in to your WordPress dashboard.
  2. Create a new post / page.
  3. Click on the "+" button in the top left corner of the editor to add a new pattern. Search and add the following patterns to the editor:
    • Featured Products 5-Item Grid
    • Product Filters
    • Large Footer Dark
    • Large Footer
    • Simple Footer Dark
    • Simple Footer
    • Footer with 2 Menus Dark
    • Footer with 2 Menus
    • Footer with 3 Menus
    • Centered Header Menu with Search
    • Essential Header Dark
    • Essential Header
    • Large Header Dark
    • Large Header
    • Hero Product Split
    • Just Arrived Full Hero
    • Product Collections Featured Collection
    • Product Collections Featured Collections
    • Product Collections Newest Arrivals
    • Product Details Product Listing
    • Product Hero 2 Column 2 Row
    • 1:1 Image 4-Column Product Row
    • 3-Column Product Row
    • 4-Column Product Row
    • Large Image Product Gallery
    • Minimal 5-Column Product Row
    • Minimal Product List
    • Product Gallery
    • Product List with 1:1 Images
    • Product List with Full Product Description
    • Alternating Image and Text
  4. On the top-left side, click to open the List View
  5. Make sure the blocks are named correctly (as in the list above) and the word "WooCommerce" does not appear in front of the blocks title.

Remove the word beta from the compatibility notice #10019

  1. Create a fresh site.
  2. Create a test page and add the Cart block to it.
  3. Select the Cart block and verify that the notice reads:

"The Cart & Checkout Blocks are a feature to optimize for faster checkout. To make sure this feature is right for your store, review the list of compatible extensions."

  1. Create a test page and add the Checkout block to it.
  2. Select the Checkout block and verify that the notice reads:

"The Cart & Checkout Blocks are a feature to optimize for faster checkout. To make sure this feature is right for your store, review the list of compatible extensions."


Note When testing this on an existing testing site:

  • Make sure that there's no incompatible payment gateway is installed, as the incompatible payment gateway notice prevents the compatibility notice from appearing.
  • Make sure that there's no key called wc-blocks_dismissed_sidebar_compatibility_notices stored in local storage, as this also prevents the compatibility notice from appearing.

Hide "collection from" text when a location has an incomplete address. #9808

  1. Go to WooCommerce > Settings > Shipping > Local Pickup. Create 2 pickup locations—one should have a full address/pickup location, and one should have no address like so:

Screenshot 2023-06-13 at 12 48 21

  1. Add items to your cart and go to checkout.
  2. Select Local Pickup
  3. Select the pickup location with an address. it should show "collection from" like so:

Screenshot 2023-06-13 at 12 50 13

  1. Select the pickup location with no address. It should not show the collection from section:

Screenshot 2023-06-13 at 12 50 19

  1. Place the order and check the confirmation displays correctly without an address also:

Screenshot 2023-06-13 at 12 56 19

Cleanup code to lazy-load wc-settings in the Mini-Cart block #10042

This PR doesn't add any new feature, so testing mostly refers to smoke testing that there are no regressions.

  1. Add the Mini Cart block to the header of your store.
  2. In the frontend, verify you can open it, interact with its inner blocks (ie: change the quantity of a product, remove a product, etc.).

Prevent prefetched Cart payload causing wrong values with cached Mini-Cart block #10029

With your admin user:

  1. Install WP-Optimize - Clean, Compress, Cache or a similar caching plugin.
  2. Go to WP-Optimize > Settings > Cache and enable page caching.

In a private/incognito window without being logged in:

  1. In the frontend visit any page. This will cache the page without products in the cart.

With your admin user:

  1. Add some products to your cart.
  2. Visit the same page from step 3.
  3. Notice the Mini Cart totals do include the products you added in step 4, even though it's serving the cached version of step 3.
  4. Hover the Mini-Cart button and verify the totals are still correct.
Before After
before.webm after.webm
  1. Add another product to your cart.
  2. Verify Mini-Cart totals updated correctly.
  3. Navigate to any other page.
  4. Verify Mini-Cart values are always correct and at no moment they render incorrect data.

Make filter by rating preview consistent with default settings #10007

  1. Ensure you don't have any product reviews on your store.
  2. Add a new post and add the Filter by Rating block.
  3. Because you don't have any reviews, it will show a preview of what the ratings filter would look like.
  4. Ensure you don't see any product counts because by default, the Display Product count setting is disabled.

Mini Cart: Add Price, Icon and Product Count color settings #9647

  1. Test with WP 6.3 or WP 6.2 with Gutenberg installed.
  2. Add the Mini Cart block.
  3. Select the "Styles" tab
  4. Set custom colors for the Icon, Price, and Product count.
  5. Make sure the changes are visible in the editor and the page.

Avoid usage of __experimentalUseFocusOutside #10017

  1. Add the Mini Cart block to the header of your site via (Appearance > Editor).
  2. In the frontend and with the Cart empty, open the Mini Cart drawer, verify you can open and close the drawer without problems. Test closing the drawer by clicking on the overlay that appears above the rest of the page.
  3. 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.
  4. Now repeat steps 1-3 with another browser. Ideally test Chrome, Firefox and a Webkit-based browser (like Safari or GNOME Web).

Single Product Template: fix compatibility layer logic when the blocks aren't wrapped in a group block #9982

  1. Edit the Single Product Template.
  2. Remove all the blocks.
  3. Add three paragraph blocks.
  4. Save it.
  5. Visit a product.
  6. Ensure that all three paragraph blocks are visible.

Product Image: use WC Core function to render image #9984

  1. Add a Products (Beta) block to a page.
  2. Save and check the page on the front end.
  3. See <img> elements have loading, srcset, size attributes.

Single Product Block > Ensure the Product Summary and Title are always rendered with the correct context independent of their position #9968

  1. Make sure you have the Gutenberg plugin disabled
  2. Create a new post
  3. Add the Single Product block and move the Product Summary block to the last position, as demonstrated in the screenshot below:
Screenshot 2023-06-22 at 18 37 47
  1. Save the post and ensure the content is displayed as expected on the front end and matches the product summary (from the Single Product block) rather than the post's excerpt where it was inserted.
  2. Now move the Product Title to the last position in the editor and save the post.
  3. Ensure the title is displayed as expected on the front end it and matches the product title (from the Single Product block) rather than the title of the post where it was inserted.

Allow customer account block to center align #9750

  1. Add a post/page and insert the Customer account block.
  2. With the toolbar, change the width alignment to center. Update/Publish.
  3. Ensure you see the icon and text centered on the page.
  4. Go to the frontend and check that it is also centered on the page.

Remove unnecessary white space from Testimonials 3 Columns pattern #9786

  1. Create a post or page.
  2. Add the Testimonials 3 Columns pattern.
  3. Verify there is no white space at the beginning of each paragraph.
Before After
imatge imatge

Fix cart and checkout conditionals when using a block based theme and templates #10098

  1. Active a non-blocks theme e.g. 2019
  2. Go to Settings > Advanced and set the cart and checkout pages to pages that do not contain blocks. For example, set them to pages using the cart and checkout shortcodes
  3. Save settings. Then switch to a block based theme, e.g. TT3
  4. Go to the store and view a product page.
  5. Add to cart. Check that the notice styling is using the new design:

Screenshot 2023-07-05 at 11 37 57