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

3.6 KiB

Testing notes and ZIP for release 6.4.0

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

Feature Plugin

Switch variables round in the error message of mustContain validation function. (5155)

  1. Install the Simple Custom CSS and JS plugin and, inside its settings, add this JS code to the footer:
wc.blocksCheckout.__experimentalRegisterCheckoutFilters( 'my-test-extension', {
	subtotalPriceFormat: ( value ) => 'test',
} );
  1. Visit the Cart or Checkout block and ensure the error message reads Error: Returned value must include "<price/>", you passed "test"
  2. Change the code to
wc.blocksCheckout.__experimentalRegisterCheckoutFilters( 'my-test-extension', {
	subtotalPriceFormat: ( value ) => '<price/>test',
} );
  1. Reload the page and verify the Cart and Checkout block loads correctly.

image

Lazy load missing translation files. (5112)

  1. Switch the site language to Spanish.
  2. Update the translations via WP Admin → Dashboard → Translations → Update Translations.
  3. Create a test page, add the Checkout block and save it.
  4. Ensure that the "Terms and conditions" text in the editor is in Spanish.
  5. Look up the frontend and verify that the "Terms and conditions" text is in Spanish (see screenshot).
  6. Switch the site language to German and repeat steps 2. until 5. (texts should then appear in German)

#5005-Spanish-after

#5005-German-after

Checkout Terms Block: Fix Terms and Conditions checkbox position in editor. (5191)

  1. Go to the post editor.
  2. Add Checkout block.
  3. Select Terms and Conditions child block.
  4. Activate Require checkbox display option.
  5. Confirm that the checkbox is aligned to the top of the paragraph.

Screen Shot 2021-11-18 at 23 34 05

Fix manual entry within Quantity Inputs. (5197)

  • Add a product to your cart.
  • Go to a page with the Cart block.
  • Try typing a quantity into the line item.
  • Totals should update.
  • Try typing a letter. Input should be ignored and reset to 1.

Feature plugin and package inclusion in WooCommerce

Feature gate WC Block Templates to WC v6.0.0. (5210)

  1. Install and activate version 11.9.1 of the Gutenberg plugin.
  2. Install and activate a FSE enabled theme, such as the TT1 Blocks theme.
  3. In WC 5.9, check that block templates are not loading. You can verify that going to a single product page (ie: Cap) and verify that contents don't appear twice.
  4. Also check the templates are not loading in the Site Editor (Appearance > Editor > Templates > General templates -- if this last folder doesn't exist, that means this is testing well).