Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update testing steps of 11905 and 11821: update the option name that …
Browse files Browse the repository at this point in the history
…was updated in another PR from Shrink columns to fit to Responsive
  • Loading branch information
kmanijak committed Dec 4, 2023
1 parent 95a1b15 commit f996461
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/internal-developers/testing/releases/1170.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ add_action('woocommerce_single_product_summary', function() {

1. Go to Editor
2. Add Product Collection block
3. Enable "Shrink columns to fit" option
3. Enable "Responsive" option
4. Switch view from Grid to Stack and back to Grid - try both Inspector Controls and Toolbar option (red rectangles on the screenshot).
![Screen Shot 2023-11-22 at 17 03 21 PM](https://github.com/woocommerce/woocommerce-blocks/assets/20098064/ea3a20da-f4c5-49cc-acff-de600139ca28)
5. When switching back to Grid view, "Shrink columns to fit" should be still ENABLED
5. When switching back to Grid view, "Responsive" should be still ENABLED
6. Repeat with the option DISABLED

### Enable shrink columns option in Product Collection by default [#11821](https://github.com/woocommerce/woocommerce-blocks/pull/11821)
Expand All @@ -123,7 +123,7 @@ add_action('woocommerce_single_product_summary', function() {

1. Go to Editor
2. Add Product Collection block
3. Expected: it has "Shrink columns to fit" enabled by default
3. Expected: it has "Responsive" enabled by default

#### Case 2: Patterns

Expand All @@ -135,21 +135,21 @@ add_action('woocommerce_single_product_summary', function() {
- Product Collection Simple Grid
- Product Gallery

3. Make sure each of them has "Shrink columns to fit" option enabled by default
4. Insert pattern Product Collection Rows - it has `Stack` view enabled by default and then "Shrink columns to fit" is not available. Change the view from `Stack` to `Grid`
5. Make sure it has "Shrink columns to fit" option enabled by default
3. Make sure each of them has "Responsive" option enabled by default
4. Insert pattern Product Collection Rows - it has `Stack` view enabled by default and then "Responsive" is not available. Change the view from `Stack` to `Grid`
5. Make sure it has "Responsive" option enabled by default

#### Testing notes for the development team

1. While on `trunk`, add Product Collection block
6. It has "Shrink columns to fit" option disabled by default
6. It has "Responsive" option disabled by default
7. Enter "Code editor" and
8. Find and remove `"shrinkColumns":false"` - this step is to mimic the case when someone added the block before the option was even introduce
9. Save the post/template
10. Switch to this branch `add/enable-shrink-column-in-product-collection-by-default`
11. Refresh the Editor
12. Change number of columns - this step is to trigger `setAttribute` function
13. Expected: make sure this block still has the "Shrink columns to fit" option DISABLED
13. Expected: make sure this block still has the "Responsive" option DISABLED

### Reorganise Columns controls and fix undefined problem in Product Collection settings [#11937](https://github.com/woocommerce/woocommerce-blocks/pull/11937)

Expand Down

0 comments on commit f996461

Please sign in to comment.