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

13 KiB

Testing notes and ZIP for release 8.5.0

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

Feature plugin and package inclusion in WooCommerce

Improve the alignment of the Remove button in the Filter by Attribute block. (7088)

  1. Create a page with the filter blocks and the All Products block. Make sure to add two Filter by Attribute blocks with display style set to dropdown. One allowing single selection and the other one allowing multiple selection.
  2. Add some attribute filters.
  3. Verify the remove icons are properly aligned.
  4. Try with different themes (e.g. Storefront and Twenty Twenty Two).
Before After

Enhance the display of the Active filters block changing the sizes of the text. (7087)

  1. Create a page with the filter blocks and the All Products block.
  2. In the frontend add some filters.
  3. Verify the active filters texts have a size which doesn't seem broken compared to other filter blocks.
  4. Try changing the display style to chips and verify the same.
  5. Try with different themes (e.g. Storefront and Twenty Twenty Two).

List

Before After

Chips

Before After

Add loading placeholders to Active Filters block. (7083)

  1. Enable TT2 theme. Create a new page with an All Products block and a Active Filters block with other filter blocks. Save the page.
  2. Open the page in the frontend and check that the Active Filters block shows like the screenshot while loading.
  3. Try different combinations of settings (show the Apply button, Chips vs List etc) and make sure the loading state makes sense and there are no regressions.
  4. Repeat steps 1-3 with the Storefront theme.
List Chips
Screenshot 2022-09-08 at 11 17 04 Screenshot 2022-09-08 at 11 16 50
  1. Ensure you have a block theme active (i.e., Twenty Twenty-Two).
  2. Go to Appearance > Editor (Beta).
  3. Click on the Global Styles panel and select the Blocks section.
  4. Scroll down to the Featured Product or Featured Category block and edit the text and the background Global Styles.
  5. Confirm that both the text and background colors reflect the changes from the sidebar controls.
Before After
CleanShot 2022-09-01 at 14 31 05 CleanShot 2022-09-01 at 14 35 45

Update "remove filter" icon on the Active Filters block to use Icon component in both layouts. (7035)

  1. Add the Active Filters block, in List view alongside some other Filters blocks.
  2. Apply some filters to the page.
  3. Confirm the remove button matches the After screenshot above. Also confirm that the remove button is visually consistent with the remove button in Chips view.
  4. Confirm the remove buttons for each active filter have a hover state of an alternate shade of grey - also confirm they function as expected.
  5. Confirm no JS or PHP errors.
Before After
CleanShot 2022-08-31 at 16 48 11 CleanShot 2022-08-31 at 16 38 34

Update filter by price skeleton design. (6997)

  1. Enable TT2 theme. Create a new page with an All Products block and a Filter by price block. Save the page.
  2. Open the page in the frontend and check that the Filter by price block shows like the screenshot while loading.
  3. Try different combinations of settings (show the Apply button, make the inputs inline, and make the range price not editable, etc) and make sure the loading state makes sense and there are no regressions.
  4. Repeat steps 1-3 with the Storefront theme.
Block Loading
Screenshot 2022-08-29 at 15 00 51 Screenshot 2022-08-29 at 15 00 55
Screenshot 2022-08-29 at 15 01 15 Screenshot 2022-08-29 at 15 01 28

Update filter by attribute skeleton design. (6990)

  1. Enable TT2 theme. Create a new page with an All Products block and a Filter by attribute block. Save the page.
  2. Open the page in the frontend and check that the Filter by attribute block shows like the screenshot while loading.
  3. Try different combinations of the block settings (dropdown, show apply button, etc) and make sure the loading state makes sense and there are no regressions.
  4. Repeat steps 1-3 with the Storefront theme.
Block Loading
Screenshot 2022-08-29 at 15 18 17 Screenshot 2022-09-02 at 15 50 16

Fix checkbox label when count is zero. (7073)

  1. Make sure you don't have any product with On backorder status.
  2. Create a page with an All products block and a Filter by stock block.
  3. Save it, go to the page and append this param to the URL ?filter_stock_status=onbackorder.
  4. Check that the on backorder label shows On backorder (0).
Before After
Screenshot 2022-09-06 at 14 45 21 Screenshot 2022-09-06 at 14 45 04

Fix incompatible Classic Template block notice in the Editor for Woo specific templates. (7033)

  1. Activate Gutenberg plugin.
  2. Go to Appearance > Editor > Add New to add a new template.
  3. Click "Single Item: Product" template and create a product specific template
  4. The block should render the placeholder for the Single Product.
  5. Make changes to this template, and save them. Make sure these are represented on the frontend. Then clear the customizations and do the same.
  6. Complete steps 3-5 again but instead create Product Category and Product Tag templates.
  1. Install a block theme (e.g., Twenty Twenty Two).
  2. Open Appearance > Editor (beta).
  3. Add a Featured Product and a Featured Category block.
  4. Customize the global styles for those blocks (click on the Styles button on the top toolbar and then the Blocks section towards the bottom - see screenshots below).
  5. Add some style adjustments and confirm they are reflected in the editor.
  6. Save your changes and view a page driven by the modified Template on the front-end.
  7. Confirm the adjusted styles are rendered to the front-end, as expected.
Global Styles Panel Blocks Settings
CleanShot 2022-08-26 at 22 05 58 CleanShot 2022-08-26 at 22 03 00

Note: the text color settings for this block are driven by inline styles that are added based on the Overlay and Color setting defaults. I imagine we want to keep those defaults in place so. To adjust this in the Editor, edit/remove those default settings on the block directly.

Add Apply button placeholders to filters and adjust title margins. (7077)

  1. Create a page with the filter blocks and the All Products block. Make sure to enable the Show Apply filter button setting on all of them.
  2. Save and open the page on the front-end and make sure the placeholders show the apply button while loading and they look like the screenshot.
Before After
Screenshot 2022-09-09 at 11 00 23 Screenshot 2022-09-09 at 11 00 03

Fix pills in the Filter by Attribute block dropdown overlapping with the chevron. (7039)

  1. Add the Filter by Attribute block and the All Products block to a page.
  2. Set the Filter by Attribute block display to dropdown and allow selecting multiple options.
  3. Play around with the window size and the options you select, and make sure the pills inside the input don't overlap the chevron.
Before After
Screenshot 2022-09-01 at 12 16 45 Screenshot 2022-09-01 at 12 17 05

Fix stock filter placeholder. (7009)

  1. Create a new page with a 30/70 columns block, insert the Filter by stock block in the 30% column and the All Products block in the 70% columns. Save the page.
  2. Open the page in the frontend and check that the Filter by stock block shows like the screenshot above while loading.
  3. Remove all products in the store and refresh the page you created in step 1. Check that Filter by stock placeholder disappears if there are no products.
Before After
Screenshot 2022-08-30 at 14 40 43 Screenshot 2022-08-30 at 14 40 24
Screenshot 2022-08-30 at 12 06 52 Screenshot 2022-08-30 at 14 38 54