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

Commit 8e63693

Browse files
committed
Fix linting errors in testing instructions for 1130
1 parent 31704dc commit 8e63693

File tree

1 file changed

+11
-1
lines changed
  • docs/internal-developers/testing/releases

1 file changed

+11
-1
lines changed

docs/internal-developers/testing/releases/1130.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
5656
### Store Customization > Homepage Template 1: Review layout and spacing in between patterns [11144](https://github.com/woocommerce/woocommerce-blocks/pull/11144)
5757

5858
1. Create a new page or post and insert all the patterns shown in the screenshot below 👇
59+
5960
- `Minimal 5-column products row` corresponds to `Product Collection 5 Columns`
61+
6062
2. Make sure the design is the same and the spacing between patterns matches.
6163

6264
<img width="524" alt="Screenshot 2023-10-02 at 17 39 07" src="https://user-images.githubusercontent.com/15730971/272015191-e07193cc-07e2-4a3e-b88e-29f4654850db.png">
@@ -97,8 +99,10 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
9799
### Store Customization > Homepage Template 2: Review layout and spacing in between patterns [11129](https://github.com/woocommerce/woocommerce-blocks/pull/11129)
98100

99101
1. Create a new page or post and insert all the patterns shown in the screenshot below 👇
102+
100103
- `1:1 image 4-column products row` corresponds to `Product Collection 4 Columns`.
101104
- `Minimal 5-column products row` corresponds to `Product Collection 5 Columns`.
105+
102106
2. Make sure the design is the same and the spacing between patterns matches.
103107

104108
<img width="449" alt="Screenshot 2023-10-02 at 17 36 50" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/56232ac8-8917-4a7f-96f0-058d88aa11e5">
@@ -155,14 +159,16 @@ Expected value is not `null`
155159
#### Testing notes for the development team
156160

157161
1. add a fee to you cart, for example by using this code in your functions.php
158-
```
162+
163+
```php
159164
add_action( 'woocommerce_cart_calculate_fees', function( $cart ) {
160165
$cart->add_fee( 'Fee 0', 5, true );
161166
$cart->add_fee( 'Fee 2', 10, true );
162167
$cart->add_fee( 'Fee 3', 50, true );
163168
});
164169

165170
```
171+
166172
2. go to your cart or checkout block
167173
3. check the CSS classes of the fee elements with your browser developer tool
168174

@@ -188,9 +194,11 @@ add_action( 'woocommerce_cart_calculate_fees', function( $cart ) {
188194
##### Test display of incompatible extensions
189195

190196
1. Install and activate the following three helper plugins:
197+
191198
- [helper-plugin-1.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701036/helper-plugin-1.zip)
192199
- [helper-plugin-2.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701039/helper-plugin-2.zip)
193200
- [helper-plugin-3.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701041/helper-plugin-3.zip)
201+
194202
2. Create a test page and add the Checkout block to it.
195203
4. Open the settings sidebar, if not already open.
196204
5. Verify that the incompatibility notice lists the `A → Incompatible Extension`, `Coinbase`, `N → Incompatible Extension
@@ -283,12 +291,14 @@ PS: the background image doesn't necessarily have to match what is displayed in
283291
### Single Product block: Redirect to the cart page after successful addition setting isn't respected [11151](https://github.com/woocommerce/woocommerce-blocks/pull/11151)
284292

285293
#### Test 1: Redirect shopper to the cart page after successful addition when setting is enabled
294+
286295
1. Enable redirects to the cart page with the setting under WooCommerce > Settings > Products > General > Add to cart behaviour > Check - Redirect to the cart page after successful addition
287296
2. Create a product and a page with an FSE theme.
288297
3. Add the product to the page with the Single Product block.
289298
4. View the page and click "Add to cart". Make sure the shopper is redirected to the Cart page and the product was correctly added to the cart
290299

291300
#### Test 2: Keep shopper at the same page when setting is disabled
301+
292302
1. Enable redirects to the cart page with the setting under WooCommerce > Settings > Products > General > Add to cart behaviour > Check - Redirect to the cart page after successful addition
293303
2. Create a product and a page with an FSE theme.
294304
3. Add the product to the page with the Single Product block.

0 commit comments

Comments
 (0)