Fix linting errors in testing instructions for 1130

This commit is contained in:
roykho 2023-10-11 09:12:57 -07:00
parent 0c2f042886
commit 847d94b040
1 changed files with 11 additions and 1 deletions

View File

@ -56,7 +56,9 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
### Store Customization > Homepage Template 1: Review layout and spacing in between patterns [11144](https://github.com/woocommerce/woocommerce-blocks/pull/11144)
1. Create a new page or post and insert all the patterns shown in the screenshot below 👇
- `Minimal 5-column products row` corresponds to `Product Collection 5 Columns`
2. Make sure the design is the same and the spacing between patterns matches.
<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.
### Store Customization > Homepage Template 2: Review layout and spacing in between patterns [11129](https://github.com/woocommerce/woocommerce-blocks/pull/11129)
1. Create a new page or post and insert all the patterns shown in the screenshot below 👇
- `1:1 image 4-column products row` corresponds to `Product Collection 4 Columns`.
- `Minimal 5-column products row` corresponds to `Product Collection 5 Columns`.
2. Make sure the design is the same and the spacing between patterns matches.
<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,13 +159,15 @@ Expected value is not `null`
#### Testing notes for the development team
1. add a fee to you cart, for example by using this code in your functions.php
```
```php
add_action( 'woocommerce_cart_calculate_fees', function( $cart ) {
$cart->add_fee( 'Fee 0', 5, true );
$cart->add_fee( 'Fee 2', 10, true );
$cart->add_fee( 'Fee 3', 50, true );
});
```
2. go to your cart or checkout block
3. check the CSS classes of the fee elements with your browser developer tool
@ -187,9 +193,11 @@ add_action( 'woocommerce_cart_calculate_fees', function( $cart ) {
##### Test display of incompatible extensions
1. Install and activate the following three helper plugins:
- [helper-plugin-1.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701036/helper-plugin-1.zip)
- [helper-plugin-2.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701039/helper-plugin-2.zip)
- [helper-plugin-3.zip](https://github.com/woocommerce/woocommerce-blocks/files/12701041/helper-plugin-3.zip)
2. Create a test page and add the Checkout block to it.
4. Open the settings sidebar, if not already open.
5. Verify that the incompatibility notice lists the `A → Incompatible Extension`, `Coinbase`, `N → Incompatible Extension
@ -282,12 +290,14 @@ PS: the background image doesn't necessarily have to match what is displayed in
### Single Product block: Redirect to the cart page after successful addition setting isn't respected [11151](https://github.com/woocommerce/woocommerce-blocks/pull/11151)
#### Test 1: Redirect shopper to the cart page after successful addition when setting is enabled
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
2. Create a product and a page with an FSE theme.
3. Add the product to the page with the Single Product block.
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
#### Test 2: Keep shopper at the same page when setting is disabled
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
2. Create a product and a page with an FSE theme.
3. Add the product to the page with the Single Product block.