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

Release: 3.4.0 #3144

Merged
merged 8 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions .github/patch-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The release pull request has been created! This checklist is a guide to follow f

The below only needs done if this patch release is the **_latest_** release of the plugin.

* [ ] Copy the changelog from the pull request description into the `readme.txt` file to the top of the changelog section. Create a new section here for this release, eg.g. `= {{version}} - 2020-01-20 =`.
* [ ] Copy the changelog from the pull request description into the `readme.txt` file to the top of the changelog section. Create a new section here for this release, eg. `= {{version}} - 2020-01-20 =`.
* [ ] Make any other changes to plugin metadata as necessary (no version changes needed, that's handled by script later in the process).
* [ ] `readme.txt` - support versions changing, reference new blocks if necessary.
* [ ] `woocommerce-gutenberg-products-block.php` - requirements/tested up to versions etc.
Expand All @@ -26,7 +26,7 @@ When creating testing notes, please write them from the perspective of a "user"
* At least one other person should test the built zip - ask a teammate to help out.
* Test in a clean environment, e.g. Jurassic.Ninja site.
* Test existing WooCommerce Blocks content works correctly after update (no block validation errors).
* Test to confirm blocks are available and work correctly in oldest supported WordPress version (e.g. 5.0).
* Test to confirm blocks are available and work correctly in oldest supported WordPress version (e.g. 5.3).
* Confidence check - check blocks are available and function.
* Test to confirm new features/fixes are working correctly.
* Smoke test – test a cross section of core functionality.
Expand Down
4 changes: 2 additions & 2 deletions .github/release-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The release pull request has been created! This checklist is a guide to follow f

## Initial Prep - changelog and meta data changes

* [ ] Copy the changelog from the pull request description into the `readme.txt` file to the top of the changelog section. Create a new section here for this release, eg.g. `= {{version}} - 2020-01-20 =`.
* [ ] Copy the changelog from the pull request description into the `readme.txt` file to the top of the changelog section. Create a new section here for this release, eg. `= {{version}} - 2020-01-20 =`.
* [ ] Make any other changes to plugin metadata as necessary (no version changes needed, that's handled by script later in the process).
* [ ] `readme.txt` - support versions changing, reference new blocks if necessary.
* [ ] `woocommerce-gutenberg-products-block.php` - requirements/tested up to versions etc.
Expand All @@ -24,7 +24,7 @@ When creating testing notes, please write them from the perspective of a "user"
* At least one other person should test the built zip - ask a teammate to help out.
* Test in a clean environment, e.g. Jurassic.Ninja site.
* Test existing WooCommerce Blocks content works correctly after update (no block validation errors).
* Test to confirm blocks are available and work correctly in oldest supported WordPress version (e.g. 5.0).
* Test to confirm blocks are available and work correctly in oldest supported WordPress version (e.g. 5.3).
* Confidence check - check blocks are available and function.
* Test to confirm new features/fixes are working correctly.
* Smoke test – test a cross section of core functionality.
Expand Down
88 changes: 88 additions & 0 deletions docs/testing/releases/340.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
## Testing notes and ZIP for release 3.4.0

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

## The following are changes that only impact Feature Plugin release.

### Ensure shopper saved card is used as default payment method (default was being overwritten in some circumstances). ([3131](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3131))

- Set up checkout page using block.
- Enable BACS and Stripe payment methods (only, though may reproduce with other combinations). Note BACS needs to be earlier in the order than Stripe (drag handle in `WooCommerce > Settings > Payments`).
- Complete a purchase using a new payment method, Stripe CC, check `Save payment information to my account for future purchases`.
- Add something to cart, proceed to checkout.
- Leave the default selected payment method - i.e. the first saved payment method. Submit checkout.

Should always complete the purchase with the correct payment method - the one visibly selected when user clicks submit, i.e. the saved card.

Please also test a variety of other payment method scenarios and ordering - with / without saved cards (are there any other gateways that support saved payment methods?), with more/less gateways available, in different orders, and with dynamically-available gateways (COD can depend on shipping option). In all cases confirm the following:

- There is a payment method tab selected by default.
- Submitting checkout without touching payment section uses the correct payment method (i.e. saved card, payment method tab).
- Selecting a non-default saved card (from the default) works correctly, uses correct card/token (may need to check network requests to check token).
- Selecting a non-default payment method uses correct method.
- Saving a payment method (card) works and is available for use next checkout with that account.
- Payment tab order should match the configured order.

### Fix Cart & Checkout sidebar layout broken in some themes. ([3111](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3111))

1. Install and activate [Artisan](https://woocommerce.com/products/artisan/) or [Threads](https://woocommerce.com/products/threads/) theme.
2. Go to the Cart or Checkout blocks and verify the sidebar is shown on the right instead of below.

_Before:_
![image](https://user-images.githubusercontent.com/3616980/92132121-0ab46e00-ee07-11ea-8418-0cd59b3b2d04.png)

_After:_
![image](https://user-images.githubusercontent.com/3616980/92132043-f2dcea00-ee06-11ea-895b-afda511e36f8.png)


### Use wp_login_url instead of hardcoding login path. ([3090](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3090))

1. In an incognito window and add some products and then go to Checkout.
2. See the login URL, it should take you to `wp-login.php?redirect_to=[CURRENT_URL]`
3. Enable checkout for users only from WooCommerce -> Settings -> Accounts -> uncheck `Allow customers to place orders without an account`.
4. Visit Checkout again, the link should do the same.
5. Install and activate https://wordpress.org/plugins/change-wp-admin-login/.
6. Visit Settings -> Permalinks and change the login URL to something else.
7. Do 1,2,3 and 4 again, confirm that your value is respected.

### Fix an issue with COD not showing when first enabled. ([3088](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3088))

1. You can either test this on a new website, or delete `woocommerce_cod_settings` option from `wp_options` table.
2. Enable Cash on Delivery, don't set it up, leave everything as is, it should work with all shipping methods.
3. Create an order and enter a valid address that has a shipping method with it.
4. You will see COD as a payment option.
5. Go to COD settings, select a value for "Enable for shipping methods".
6. Save the settings.
7. Delete what was selected to return the field to its initial state.
8. Visit checkout again, COD is still working.

- Fix JS console error when COD is enabled and no shipping method is available. ([3086](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3086))

1. Enable COD and limit it to a certain shipping method type.
2. Add that method to a certain address.
3. Select another address on the Checkout block, you shouldn't see an error with `selectedMethod is undefined` on the console.

### Create DebouncedValidatedTextInput component. ([3108](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3108))

Smoke test the Checkout block:

* create a new page and add the Checkout block, change some attributes in the sidebar and verify changes take place
* verify the Checkout block works in the frontend: try changing your address, picking a different shipping and payment method, etc.
* verify you can make a purchase.

## The following impacts testing for both feature plugin and when included in WooCommerce Core.

### Fix product reviews schema date fields to use new (WP 5.5) `date-time` format. ([3109](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3109))

- Add some reviews for products.
- Add an All Reviews block to post or page content.
- Verify the frontend rendering of the block shows the expected dates for the reviews.

### Merge ProductPrice atomic block and component. ([3065](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3065))

Testing this change basically means verifying there are no regressions:

1. (For feature plugin testing only) Load the Cart and Checkout blocks. **_Verify_** product prices (default prices and on sale prices) are still rendered correctly.<br><img src="https://user-images.githubusercontent.com/3616980/91466321-3d9eb500-e88f-11ea-9a69-554c149a4163.png" alt="" width="187" />
2. Add the All Products block in a page. **_Verify_** there are no regressions with the Product Price block.
3. Repeat the verifications above using a small viewport browser.
4. Repeat the verifications above using with the [Seedlet theme](https://wordpress.org/themes/seedlet/).
1 change: 1 addition & 0 deletions docs/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Every release includes specific testing instructions for features and bug fixes
- [3.1.0](./310.md)
- [3.2.0](./320.md)
- [3.3.0](./330.md)
- [3.4.0](./340.md)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "3.4.0-dev",
"version": "3.4.0",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
Expand Down
21 changes: 20 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 5.3
Tested up to: 5.5
Requires PHP: 5.6
Stable tag: 3.3.0
Stable tag: 3.4.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -85,6 +85,25 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 3.4.0 - 2020-09-14 =

#### Bug Fixes

- Ensure shopper saved card is used as default payment method (default was being overwritten in some circumstances). ([3131](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3131))
- Fix Cart & Checkout sidebar layout broken in some themes. ([3111](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3111))
- Fix product reviews schema date fields to use new (WP 5.5) `date-time` format. ([3109](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3109))
- Use wp_login_url instead of hardcoding login path. ([3090](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3090))
- Fix an issue with COD not showing when first enabled. ([3088](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3088))
- Fix JS console error when COD is enabled and no shipping method is available. ([3086](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3086))

#### performance

- Create DebouncedValidatedTextInput component. ([3108](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3108))

#### refactor

- Merge ProductPrice atomic block and component. ([3065](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3065))

= 3.3.0 - 2020-09-02 =
- enhancement: Show express payment methods in the Cart block (for example: Apple Pay, Chrome Pay). [3004](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3004)
- bug: Fix alignment of discounted prices in Cart block. [3047](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3047)
Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '3.3.0';
$version = '3.4.0';
return new NewPackage(
$version,
dirname( __DIR__ )
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Plugin Name: WooCommerce Blocks
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
* Description: WooCommerce blocks for the Gutenberg editor.
* Version: 3.4.0-dev
* Version: 3.4.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
* Requires at least: 5.3
* Requires PHP: 5.6
* WC requires at least: 4.2
* WC tested up to: 4.4
* WC tested up to: 4.5
*
* @package WooCommerce\Blocks
* @internal This file is only used when running as a feature plugin.
Expand Down