woocommerce/plugins/woocommerce-blocks/docs/testing/releases/780.md

8.7 KiB
Raw Blame History

Testing notes and ZIP for release 7.8.0

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

Feature plugin and package inclusion in WooCommerce

Filter Products by Price: Decrease price slider step sequence from 10 to 1. (6486)

  1. Create a new page and add a "Filter Products by Price" block plus the "All Products" to the page.
  2. Save and preview the site on the Frontend e.g. via "Preview > Preview in new tab".
  3. Interact with the price slider and confirm the price slider now increments in steps of 1 instead of 10.
  4. Smoke test to ensure all other "Filter Products by Price" is still working as expected.
  1. Create a new page and add a Featured Category block, select a Category and, if it doesn't have an image, set one with the Replace button in the toolbar.
  2. On the block settings go to Media Settings and toggle Fixed image and Repeated image and save.
  3. Check the rendered category on the frontend is correct and matches the one on the edit page.
  4. Add a gradient overlay, save, and check the gradient is rendered on the frontend.
  5. Edit the block again, repeat the steps above with different combinations on Fixed image, Repeated image and any other configuration.
  6. Repeat steps 1-5 for the Featured Product block.
Before After
before after
  1. Activate the Storefront theme.
  2. Add the Featured Product block to the page.
  3. Select a product.
  4. Notice that the default color of the text inside should be white.
  5. Change the color using the picker to a custom one (not included in the default palette).
  6. The color of the text should change.
  7. Repeat steps 26 with the Featured Category block.

Fix: All Products block: New product is missing in the Cart block if Redirect to the cart page after successful addition is enabled. (6466)

  1. Go to WooCommerce > Settings > Products > check both 'add to cart' behaviors to redirect and use AJAX, then save
  2. On the home page, add the All Products block
  3. On the front-end, click "add to cart" for any product
  4. See the page is redirected to the Cart page and the Cart block contains the newly added product.

Add support for Font size and Font family for the Mini Cart block. (6396)

Before After
before_now after_now
  1. Activate a block theme, like Twenty Twenty Two
  2. Create a new page, and add the Mini Cart block
  3. Check if the Typography option is available for the block
  4. Check if the Font size and Font family options work correctly both in the editor and on the frontend

2b. After testing the above, try the same with the Mini Cart block added via the FSE editor (for example in the header)

Set the default value for focalPoint on block.json. (6499)

Screenshot 2022-05-31 at 12 31 54
  1. Create a new page and add a Featured Product or a Featured Category block and open the console.
  2. Save the page and refresh the editor.
  3. Click on the added block, edit some settings and check the error shown on the screenshot above does not appear.
  4. Edit the focal point, save the block and check the block is rendered correctly on the edit page and on the frontend.
Screenshot 2022-05-31 at 15 45 53 Screenshot 2022-05-31 at 14 28 01
  1. Create a new page and add a Featured Product or a Featured Category block and open the console.
  2. Click on the added block, edit some settings and check the error shown on the screenshot above does not appear.
  1. Add the Featured Product block to a page
  2. Compare its functionality with the same block before these changes. Non-exhaustive list:
    • When added, it shows a full-width selection dropdown to choose the product
    • After choosing the product and clicking "Done", a loading spinner appears and the product is loaded
    • All the info are displayed correctly (default image, title, description, price, call to action)
    • The block toolbar shows the same tools (duotone, alignment, cropping/replacing, editing)
    • The block sidebar shows the same options and they all work correctly (colors, content, media settings, etc.); note that the “border” does not currently work.
    • The block appears resizable and resizing works the same way.
  3. Verify the same for the Featured Category block.
  1. Create a page and add a Featured Category block.
  2. Save the page and check it renders correctly the default config in the frontend.
  3. Edit the page and make some changes to the block (duotone, padding, overlay, focal point, fixed/repeated image etc.).
  4. Save the page and check it renders correctly with the new settings.
  5. Repeat steps 1-4 with the Featured Product block.

Feature plugin only

Fix: Only enqueue the relevant translations script. (6478)

  1. Change the language to the Netherlands then update all translations.
  2. Visit a page without any blocks on the front end.
  3. View source (don't use the Inspector).
  4. See no unnecessary translations as the screenshot in #6023 shows.
  5. Create a page with the All Products block.
  6. See translations work as expected in the editor and on the front end.
  7. See the translation of Cart and Checkout blocks (and their inner blocks) are working as expected.
  8. Check the page source of the pages containing WooCommerce Blocks, see only related translations are loaded.

Respect low stock visibility setting in Cart/Checkout. (6444)

  1. Change a product to have its stock be managed, and set the stock quantity to 8.
  2. Set that product Low stock threshold value to 10.
  3. In WooCommerce -> Settings -> Products -> Inventory, set display format to "only show when below".
  4. Add the item to your cart, you should see the low stock badge.
  5. Change the setting to "never".
  6. Visit cart again, the product no longer has the badge.

Remove useStoreSnackbarNotices and interact directly with data store instead. (6411)

  1. Add a coupon to your store.
  2. Add items to your cart.
  3. Go to the Cart block, and apply the coupon. Ensure you see the snackbar notice for a successful coupon application.
  4. In a new tab, open the Cart block again and remove the coupon. Ensure you see the snackbar notice for successful coupon removal.
  5. Go back to the original tab and try removing the coupon, ensure you see an error message above the Cart.
  6. Repeat the same steps but for the Checkout block.

Decouple Store API payment handling from Checkout block loading code. (6519)

  1. Have a payment method like Stripe or WooCommerce payments enabled.
  2. Go to checkout and try to place an order.
  3. The order is placed and payment is captured and highlighted in admin area.