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

Release: 4.7.0 #3966

Merged
merged 6 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions docs/testing/releases/470.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
## Testing notes and ZIP for release 4.7.0

Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/6149138/woocommerce-gutenberg-products-block.zip)

## Feature plugin and package inclusion in WooCommerce core

### General smoke testing

The following are related to various changes impacting some existing flows so just need validated there's nothing broken:

- Create a post or page and add some WC Blocks.
- Verify they look correct and styles loaded properly.
- Publish that post or page.
- In the frontend, verify blocks also look correct and styles loaded properly.

### Fix FSE not being visible when WC Blocks was enabled (#3898)

1. Install a FSE compatible theme (ie, [Armando](https://wordpress.org/themes/download/armando.1.0.0.zip?nostats=1)).
2. Enable Gutenberg and WooCommerce.
3. Click on the _Site Editor_ sidebar menu item.
4. Verify the FSE page loads correctly.

### Fix block elements that don't play well with dark backgrounds (#3887)

1. Add the block to a page: Filter by price, Active filters, Product search & Product Categories List
2. Set a dark background for the website
3. Check that all the component elements are visible.

#### Screenshots
The cursor for _Filter Products by price_ is cut on top-bottom and is more visible on dark backgrounds
Before:

![image](https://user-images.githubusercontent.com/1628454/108357761-28776300-71ee-11eb-835f-7959fd24ea09.png)

after:

![image](https://user-images.githubusercontent.com/1628454/109490442-24fe9a00-7a80-11eb-9d23-a39e4dd5dd0f.png)


The button from _Product search_ and _Product Categories List_ is barely visible

Before:
![image](https://user-images.githubusercontent.com/1628454/108357873-4e9d0300-71ee-11eb-88f4-708fc74efc75.png)

after:
![image](https://user-images.githubusercontent.com/1628454/109490516-3e074b00-7a80-11eb-9177-b280eaadcabd.png)
![image](https://user-images.githubusercontent.com/1628454/109490656-7018ad00-7a80-11eb-8ae1-35f776a2763f.png)


The remove button from _Active Product filters_ is barely visible.

Before:
![image](https://user-images.githubusercontent.com/1628454/108357905-58bf0180-71ee-11eb-813a-083833e340bc.png)

after:
![image](https://user-images.githubusercontent.com/1628454/109491041-ff25c500-7a80-11eb-9e87-75c1e7ddf460.png)

### Fix Price not showing on All Products (#3958)

1. View all Products Block
2. Confirm prices are displayed
3. Confirm prices still display in cart/checkout to verify no regressions


## Feature plugin only

### Ensure sale badges have a uniform height in the Cart block. (#3897)

1. Add an item that's on sale to your cart then go to the cart block. Increase its quantity to 2 or more.
2. Verify the sale badges are the same height.

#### Screenshots
Before:
![image](https://user-images.githubusercontent.com/5656702/109493773-e0293200-7a84-11eb-8153-fdc47125835f.png)

after:
![image](https://user-images.githubusercontent.com/5656702/109491715-dce07700-7a81-11eb-8dee-8258626b71ae.png)


### Remove extra padding from payment methods with no description #3952

1. Go to WooCommerce > Settings > Payments, edit one of the payment methods and remove any text in its description field.
2. Go to the Checkout block and select the payment method you modified in step 1.
3. Verify there isn't extra padding at the bottom.

#### Screenshots

Before:
![image](https://user-images.githubusercontent.com/3616980/110822161-150d6400-8291-11eb-91c9-a442b63d5f67.gif" alt="Screenshot efore" width="548)
(notice the extra padding that appears when selecting check payments)

after:
![image](https://user-images.githubusercontent.com/3616980/110822189-19d21800-8291-11eb-8c51-bdca2bfdc087.gif" alt="Screenshot efore" width="548)

### Fix "save payment" checkbox not showing for payment methods (#3950)

1. Enable stripe or WCPay (stripe is easier).
2. Enable using saved payment methods.
3. Add a regular (not a subscription product) to your cart and checkout.
4. Open Stripe payment box, see if the save checkbox is visible.

### Fix cart preview when shipping rates are set to be hidden until an address is entered (#3946)

1. Tick WooCommerce > Settings > Shipping > Hide shipping costs until an address is entered
2. Add a cart block to a page, and in the block options disable "Shipping Calculator"
3. See the preview of the block

#### Screenshots
Before:
![image](https://user-images.githubusercontent.com/1628454/110649430-7d851400-81b1-11eb-8eb0-b2a1cea80f63.png)

after:
![image](https://user-images.githubusercontent.com/1628454/110648926-10717e80-81b1-11eb-83c4-f57f254107f3.png)

### Provided billing data to payment method extensions so they can decide if payment is possible (#3992)

1. Smoke test checkout and the payment process.
2. smoke test payments via stripe for any regression.

### Smoke Testing

The following are related to various changes impacting some existing flows so just need validated there's nothing broken

- Cart and checkout coupons interaction works as expected.
- Cart and checkout changing quantities works as expected.
- Cart and checkout shipping interaction works as expected.
- Cart and checkout express payment method works as expected.
23 changes: 21 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== WooCommerce Blocks ===
Contributors: automattic, woocommerce, claudiulodro, tiagonoronha, jameskoster, ryelle, levinmedia, aljullu, mikejolley, nerrad, joshuawold, assassinateur, haszari
Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 5.4
Requires at least: 5.5
Tested up to: 5.7
Requires PHP: 7.0
Stable tag: 4.7.0-dev
Expand Down Expand Up @@ -44,7 +44,7 @@ Use this plugin if you want access to the bleeding edge of available blocks for

= Minimum Requirements =

* WordPress 5.4 or greater
* WordPress 5.5 or greater
* WooCommerce 4.3 or greater
* PHP version 7.0 or greater (PHP 7.4 or greater is recommended)
* MySQL version 5.6 or greater
Expand Down Expand Up @@ -85,6 +85,25 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 4.7.0 - 2021-03-16 =

#### Enhancements

- A new configuration property is available to registered payment methods for additional logic handling of saved payment method tokens. ([3961](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3961))
- Provided billing data to payment method extensions so they can decide if payment is possible. ([3922](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3922))
- Prevent errant payment methods from keeping Cart and Checkout blocks from loading. ([3920](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3920))
- Fix block elements that don't play well with dark backgrounds. ([3887](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3887))

#### Bug Fixes

- Remove extra padding from payment methods with no description. ([3952](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3952))
- Fix "save payment" checkbox not showing for payment methods. ([3950](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3950))
- Fix cart preview when shipping rates are set to be hidden until an address is entered. ([3946](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3946))
- Sync cart item quantity if its Implicitly changed. ([3907](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3907))
- Fix FSE not being visible when WC Blocks was enabled. ([3898](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3898))
- Ensure sale badges have a uniform height in the Cart block. ([3897](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3897))


= 4.6.0 - 2021-03-01 =

#### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
* Requires at least: 5.4
* Requires at least: 5.5
* Requires PHP: 7.0
* WC requires at least: 4.3
* WC tested up to: 5.1
* WC tested up to: 5.2
*
* @package WooCommerce\Blocks
* @internal This file is only used when running as a feature plugin.
*/

defined( 'ABSPATH' ) || exit;

$minimum_wp_version = '5.4';
$minimum_wp_version = '5.5';

if ( ! defined( 'WC_BLOCKS_IS_FEATURE_PLUGIN' ) ) {
define( 'WC_BLOCKS_IS_FEATURE_PLUGIN', true );
Expand Down