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

Commit

Permalink
Add #11745 testing steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Dec 4, 2023
1 parent f098257 commit 741aabd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/internal-developers/testing/releases/1170.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,31 @@ Test with 10 extensions
2. View the post in the frontend.
3. Open the Mini-Cart.
4. Verify there is no JS error and the Mini-Cart contents (in case you have added a product to your cart) can be seen.

### Implement the Block Hooks API to automatically inject the Mini-Cart block [#11745](https://github.com/woocommerce/woocommerce-blocks/pull/11745)

Currently, the application of this auto-injection _only_ applies when Twenty Twenty-Four is active. In future iterations, we can expand the list of themes this supports as we test this out and/or eventually remove the restrictions once the Block Hooks API has more support.

General expectations for testing:

- The mini-cart block should only appear after the navigation block in header patterns or template parts.
- It should not appear in custom patterns or template parts.
- It should only be auto-injected when the Twenty Twenty-Four theme is active.
- You should never see two mini-cart blocks in a header pattern or template part (for example WooCommerce header patterns should be untouched).
- If the mini-cart block is moved or removed and the template part/pattern/template is saved, that should persist and not change on reload.
- The auto-injection should be reflected on the frontend.

With TT4 active

- [ ] First test without these changes and take note of header template parts and patterns that don't have the mini-cart block (via the site editor).
- [ ] With this work enabled, verify that header template parts and patterns have the mini-cart block injected (see GIFs below for expectations).

This is how things look _before_ this PR's changes:

[https://github.com/woocommerce/woocommerce-blocks/assets/1429108/4d61ec4e-f1ab-478a-850f-d568993599df](https://github.com/woocommerce/woocommerce-blocks/assets/1429108/4d61ec4e-f1ab-478a-850f-d568993599df)

And how things look after:

[https://github.com/woocommerce/woocommerce-blocks/assets/1429108/289aaccb-0877-462f-8190-fa046aba1799](https://github.com/woocommerce/woocommerce-blocks/assets/1429108/289aaccb-0877-462f-8190-fa046aba1799)

- [ ] Validate the general expectations and verify they are true.

0 comments on commit 741aabd

Please sign in to comment.