Skip to content

Release Testing Instructions WooCommerce 5.3

Tam Mullen edited this page May 4, 2021 · 18 revisions

WooCommerce 5.3 includes:

WooCommerce Admin Updates:


WooCommerce Product Blocks Updates:

When using the testing instructions below, test only those cases presented in the section called "Feature plugin and package inclusion in WooCommerce core". There is no need to test cases in the "Smoke Testing" or "Feature plugin only" section since they are not a part of WooCommerce Core.

Blocks 4.9.0

Blocks 4.9.1


WooCommerce Core Updates:

Set US:CA as the default store location

PR: https://github.com/woocommerce/woocommerce/pull/29654

  1. After activating the plugin, you will see the Setup Wizard.
  2. Click the link at the bottom to skip it.
  3. Go to /wp-admin/admin.php?page=wc-settings
  4. Ensure the Country / State shows United States (US) - California as the default.
  5. Note if any other Internationalization defaults don't match what would be expected for that location e.g currency.

For non-empty shipping address do not overwrite the state or country fields with billing address data

PR: https://github.com/woocommerce/woocommerce/pull/29605

  1. Create a customer account and ensure shipping is set up for the store.
  2. Add and save billing and shipping address for a country which county/state is optional (e.g. UK), supplying a county/state for the billing address but not for the shipping address.
  3. Purchase a product.
  4. The billing county/state is not copied over to the shipping address.

Update the persistent cart after it's loaded on log in

PR: https://github.com/woocommerce/woocommerce/pull/29517

  1. While logged into a customer account (admin accounts won't work). Add a standard simple product to your cart.
  2. Log out.
  3. While logged in as admin, edit the product and set its status to draft. (https://d.pr/i/2WK27E)
  4. Log back into the customers' account.
  5. You'll be presented with this notice https://d.pr/i/5DCUEN. You should only see this the first time you log in. If you continue to log in and out subsequent logins won't display the notice.

Prevent saved changes message when leaving page

PR: https://github.com/woocommerce/woocommerce/pull/29510

  1. Go to woocommerce->settings->shipping and add a shipping zone with a shipping method.
  2. After seeing the "Save Changes" button disables, try to navigate away from this page.
  3. Ensure you're not seeing any save changes message pop up from the browser.

Make select2 dropdown text visible in dark mode

PR: https://github.com/woocommerce/woocommerce/pull/29497

  1. Enable Twenty Twenty One theme.
  2. Go to Customizer->Colors & Dark Mode and enable dark mode.
  3. Check the Select2 dropdown address fields e.g. Country / Region on cart (change address), checkout, my account (edit address) pages.
  4. Ensure when in dark mode, the text is showing correctly.

Adjust alignment issues for Twenty Twenty One

PR: https://github.com/woocommerce/woocommerce/pull/29485

  1. Activate Twenty Twenty One theme.
  2. Add couple products to the cart and go to the cart
  3. Ensure the table header rows are left aligned instead of center aligned. Refer to the images in PR.
  4. Go through with the checkout.
  5. Go to My Account and review the order you have just placed.
  6. Ensure the table header rows are left aligned instead of center aligned. Refer to the images in PR.

Remove duplicate notices from cart

PR: https://github.com/woocommerce/woocommerce/pull/29480

  1. Setup shipping with a valid zone/method.
  2. Enable shipping debug mode by going to woocommerce->settings->shipping->shipping options
  3. Add several items to the cart and navigate there
  4. You should see the shipping debug message/notice of what zone location was detected.
  5. Try deleting an item from the cart with the X button. After the AJAX process and the item is removed, ensure you are not seeing duplicate shipping debug message/notice.

Use AJAX for Page Configuration

PR: https://github.com/woocommerce/woocommerce/pull/29181

  1. Review WooCommerce > Settings > Advanced
  2. Ensure page dropdowns are searchable selects.
  3. Ensure you can clear the currently selected page.
  4. Ensure you can only select one page at a time.
  5. Ensure excludes are working correctly. For example cart page should not show checkout page as available. And checkout page should not show cart page as available.
  6. Ensure you see the page ID next to the page name.
  7. Ensure page dropdowns still save correctly
  8. Go to the frontend and ensure these pages are indeed set correctly by loading them.

Update the tax rate meta when recalculating and updating order tax items

PR: https://github.com/woocommerce/woocommerce/pull/27985

  1. Enable taxes and set an applicable 10% tax rate. https://d.pr/i/Rwuijd
  2. Manually create an order with a pending payment status and a simple product. Calculate totals and create order. https://d.pr/i/lzGjRq
  3. Change the tax rate to 5%. https://d.pr/i/wPvs98
  4. Recalculate the order totals using the recalculate button in the edit order line item metabox. The tax amount is recalculated correctly. https://d.pr/i/aF0Ypt

Update UID only for WooCommerce cookies

PR: https://github.com/woocommerce/woocommerce/pull/29542

  1. As a logged out shopper add some products to cart.
  2. Log in as a shopper with an account
  3. Check cart contents was maintained after logging in.

Added parameter to function wc_downloadable_file_permission and filter hook woocommerce_downloadable_file_permission

PR: https://github.com/woocommerce/woocommerce/pull/23188

  1. Create an order for a downloadable product.
  2. Open the order details in the admin area, and revoke access to the download for the user ("Revoke access" button in the "Downloadable product permissions" box)
  3. Try to grant access to the same product again and the permission is successfully granted.

WooCommerce API Updates:

Fix taxes endpoint not returning multiple postcodes/cities

PR: https://github.com/woocommerce/woocommerce/pull/27751

  1. In WooCommerce admin go to Settings - Tax - Standard Rates and create 3 rates: one with no cities or postcodes specified, another one with one city and one postcode, and one with two cities and two postcodes (separate them with a semicolon, ;).

  2. Temporarily add this at the ned of your woocommerce.php file, this way you won't have to bother about REST API authentication: add_filter('woocommerce_rest_check_permissions', function() {return true;}, 10, 0 ); (note that this will cause a bunch of unit tests to fail)

  3. Retrieve the taxes via the /wp-json/wc/v3/taxes endpoint and verity that the results are consistent:

For no city and no postcode:

 {
    "postcode": "",
    "city": "",
    "postcodes": [],
    "cities": []
}

For one city and postcode:

 {
    "postcode": "1111",
    "city": "OSAKA",
    "postcodes": [
      "1111"
    ],
    "cities": [
      "OSAKA"
    ],
}

For two cities and postcodes:

{
    "postcode": "2222",
    "city": "KOBE",
    "postcodes": [
      "1111",
      "2222"
    ],
    "cities": [
      "OSAKA",
      "KOBE"
    ],
Clone this wiki locally