Skip to content

Release Testing Instructions WooCommerce 5.6

Tam Mullen edited this page Aug 3, 2021 · 23 revisions

WooCommerce 5.6 includes:

WooCommerce Admin Updates:

Skip category creation on WC install #7401

  1. Set up multi-site
  2. Install WooCommerce and network activate it
  3. Go to Network Admin > Sites and click Add New
  4. Fill out the details and click Add Site, notice how a success notice shows up at the top with View Dashboard link
  5. Click on the View dashboard as quickly as possible and confirm there are no errors

Fix WC Home crash when the Analytics is disabled.

  1. Navigate to WooCommerce -> Settings -> Advanced -> Features. Uncheck Analytics and save the changes.
  2. Navigate to WooCommerce -> Home and confirm the page loads without an error.

Fix links on the dismiss dropdown are not clickable #7342

Please make sure to test it on Safari as well.

  1. Navigate to WooCommerce -> Home
  2. Click [ Dismiss ] button
  3. Confirm that the links are clickable

Fix undefined method error when setting up WC Tax #7344

  1. Set up your store with US address to make sure automated tax is supported.
  2. Install "WooCommerce Shipping & Tax" plugin.
  3. Go to WooCommerce > Home > Set up tax.
  4. Click on "Yes please"
  5. Confirm that no error has occurred and you're redirected to the home screen.

Fix missing translation strings for CES #7270

  1. Navigate to Settings -> General and change the site language to a non-English (I've used Espanol for testing purposes).
  2. You might need to update the language file if it's your first time using the selected language. Update the language file from Dashboard -> Updates (see here for more help with changing language)
  3. Go to WooCommerce -> Settings
  4. Click the [ Save Changes ] button to trigger the CES modal.
  5. Confirm the modal has correct translations (Refer to the screenshots)

Add missing translation strings in the business features section #7268

  1. Checkout this branch and run npm start
  2. Navigate to Settings -> General and change the site language to non-English (I've used Espanol for testing purposes)
  3. You might need to download the new language in Dashboard -> Updates (see here for more help with changing language)
  4. Navigate to wp-admin/admin.php?page=wc-admin&path=%2Fsetup-wizard&step=business-features and confirm the translation is working as expected.

Fix inbox note dismiss dropdown not closing on Safari #7278

  1. Navigate to WooCommerce -> Home
  2. Click "Dismiss" on a note. Confirm the position of the popover is correct.
  3. Click anywhere outside of the popover content and confirm the popover is closed.

Add TableSummaryPlaceholder to support skeleton loading #7294

  1. Visit any page using element Table to see this update.
  2. For example, Products, Orders, Revenue under Analytics; or Transactions, Deposits under Payments.
  3. While loading, scrolling down to the bottom of the table to see the placeholder of TableSummary.

Sync the category lookup table when a new category gets created #7290

  1. Navigate to Products -> Add New
  2. Add a new category on the Add New page and assign the product to it.
  3. Place an order with the product
  4. Navigate to Analytics -> Categories
  5. You should see the category.

Remove facebook extension from onboarding extensions fallback list #7287

  1. Go to the OBW and look at the Free features tab
  2. Observe no Facebook extension in the list

"Terms of service" link disappears from "Set up Tax" screen #7269

  1. Go to OBW setup wizard.
  2. Uncheck the "WooCommerce shipping" and "WooCommerce Tax" options at Free features step.
  3. Complete the OBW setup.
  4. Go to WooCommerce->Home.
  5. Click on "Set up Tax" option on Task list.
  6. TOS should not blink.

Use saved values if available when switching tabs #7226

  1. Start onboarding wizard and continue to step 4.
  2. Enter selections for business details and choose "Continue"
  3. Select the tab "Business details" to go back
  4. Confirm that the previously selected values are shown.

Change the emailed report file name #7178

Confirm the default behaviour remains the same

  1. Create a new store and install the WP Mail Logging by MailPoet plugin
  2. Go to Analytics -> Revenue and change the date range to last month
  3. Click the download button and make sure you see the "Your revenue report will be emailed to you" notification
  4. Go to Tools -> Scheduled Action and run the newly created woocommerce_admin_report_export action. After that is complete, run the woocommerce_admin_email_report_download_link action.
  5. Go to Tools -> WP Mail Log and check the latest email. The URL linked to the "Download your Revenue report" should work as usual. The URL will be something like filename=wc-revenue-report-export-16236128226138

Confirm the new filter is working

  1. Install and activate Code Snippets plugin.
  2. Add a new snippet with the following code:
add_filter( 'woocommerce_admin_export_id', function ($export_id) {
	return 'different_export_id';
} );
  1. Repeat the same steps from above. The filename in the link now should be different_export_id.

Payment gateway suggestions feature

  1. Navigate to the homescreen via WooCommerce -> Home
  2. Click on "Set up payments"

How to test

Individual payment gateway plugins dictate the settings and connection flow. For testing purposes, we'll test both the default behavior of the gateway and the enhanced configuration behavior.

  1. On the payments task, click "Set up" or "Enable" next to a gateway
  2. Note that the gateway is installed if it requires a plugin
  3. On the connection step, a button should be presented that links to the gateway's (legacy) settings screen
  4. Delete the plugin
  5. Install some of the payment gateways from the links below. They don't need to be activated, but the folder names should match those on WordPress.org to avoid conflicts.
  6. If setting fields are shown, make sure that validation works, input is saved, and is persisted on page refresh. Make sure the gateway is marked as enabled and not labeled "Requires setup" if all fields are completed.
  7. If the "Connect" button is shown, follow the connection flow. Make sure that you are returned to the payments task and that the gateway is enabled and marked as configured.
  8. Remove some settings manually under the payment gateway's legacy settings screen. Make sure the gateway is no longer marked as configured.
PayFast
  1. Set your country to South Africa in WooCommerce->Settings
  2. Don't select CBD as an industry during onboarding
Paystack
  1. Set your country to South Africa in WooCommerce->Settings
  2. Don't select CBD as an industry during onboarding
  3. Complete the payment tasks
  4. Make sure that ZAR is the site currency after configuration of Paystack and that "test mode" is turned off in settings
Stripe
  1. Set your store country to a Stripe supported country (e.g., US - https://stripe.com/global )
  2. Don't select CBD as an industry during onboarding
  3. Make sure you're using a site with https
  4. Attempt to use the oauth connection flow to enable the gateway, making sure you are returned to the site and connection is successful
  5. Remove the connection and use a non-https site
  6. Check that the manual settings configuration flow is shown
PayPal
  1. Set your store country to any country except India
  2. Don't select CBD as an industry during onboarding
  3. Make sure the PayPal connection flow is shown and works as expected
  4. In Chrome, open the console "Network" tab and right-click on the get-params request and select "Block request URL"
  5. Refresh the page and note that the manual settings flow is shown
Klarna
  1. Set your store country to one of the following: SE, FI, NO
  2. Don't select CBD as an industry during onboarding
Mollie
  1. Set your store country to one of the following: FR, DE, GB, AT, CH, ES, IT, PL, FI, NL, BE
  2. Don't select CBD as an industry during onboarding
Mercado Pago
  1. Set your store country to one of the following: AR, BR, CL, CO, MX, PE, UY
  2. Make sure the help text is shown when setting up the gateway with links to registration and the settings screen.

WooCommerce Payments

  1. Set your store country to one of the following: US, PR
  2. Don't select CBD as an industry during onboarding
  3. Make sure the WC Pay card is shown above the other payment gateways
  4. Attempt to install and configured the gateway
Cash on Delivery
  1. Make sure "Enable" is shown and clicking this enables the gateway
  2. Make sure the "Manage" button is shown after enabling the gateway
Direct bank transfer
  1. Make sure "Set up" is shown next to the gateway
  2. Enter some bank details
  3. Make sure the gateway is marked as enabled and configured with the entered settings when visiting the legacy settings screen
RazorPay
  1. Set your store country to India
  2. Don't select CBD as an industry during onboarding
PayU
  1. Set your store country to India
  2. Don't select CBD as an industry during onboarding
eWAY
  1. Set your store country to one of the following: AU, NZ
  2. Don't select CBD as an industry during onboarding
  3. Make sure the API key and password fields are shown
Square
  1. Set your store country to the US and select CBD as an industy during onboarding OR set your store country to one of US, CA, JP, GB, AU, IE, don't select CBD as an industry and select that you have a physical store in the business details step.
  2. Make sure the connection flow is shown.

WooCommerce 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 5.4.0

Blocks 5.5.0


WooCommerce Core Updates:

Setup the product attributes lookup table feature (prerequisite for testing #30041)

  1. Add the following snippet using the code snippets plugin:
add_action('woocommerce_init', function() {
    wc_get_container()
    ->get(\Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore::class)
    ->show_feature();
});
  1. Go to the WooCommerce - Status - Tools page. You will see a new tool with the title "Create and fill product attributes lookup table":

  1. Click the "Create" button. After the page reloads you'll see that the button is disabled and shows a number corresponding to the number of products processed so far (the table is filled in increments using scheduled actions):

  1. Remove the &action=regenerate_product_attributes_lookup_table part from the page URL and reload it until the button changes to "Regenerate" and is enabled again. At this point the table is ready for use.

  1. Go to WooCommerce - Settings - Products - Advanced. Mark the "Use the product attributes lookup table for filtering" option and save.

Sync the product attributes lookup table on product creation/change/deletion #30041

  1. Setup some additional products, use this csv file https://raw.githubusercontent.com/woocommerce/woocommerce/dbac025535e29f5f67bdd96ba256ca4531662b4e/DATA_FOR_POC/FilterByAttributeUsingLookup_Products.csv
  2. Trash a variable product
  3. Create/delete/modify products and variations as follows and verify that everything continues working.
  • A new product is created
  • A new variation is added to a product
  • A product or variation that had been trashed previously is untrashed
  • The product visibility changes to "search" or "hidden"
  • The attributes for a product change, this includes:
    • New attributes are added or deleted for a product
    • Terms are added or removed from the attribute definition for a product
    • The attribute changes between "used for variations" and not
    • The attributes for a variation change
  1. Delete the lookup table (from the WooCommerce > Status > Tools page)

Add support for Shipping Phone Number in Order and Customer classes #30097

  1. Edit or add an order in wp admin WooCommerce > Orders
  2. Click edit besides the shipping address
  3. Add phone number and save
  4. View phone number. It will be clickable to match billing phone.
  5. In the order actions metabox, send the invoice
  6. Check the invoice email. Shipping phone will be displayed alongside the shipping address.
  7. Go to Admin > Users > Profile
  8. Confirm the "phone" field exists under the shipping section
  9. Confirm the value can be edited/saved

Fixing batch export limitations #29749

Check fix

  1. Use a test site with 700+ Products
  2. Install and activate Code Snippets plugin.
  3. Add a new snippet with the following code:
add_filter( 'woocommerce_product_export_batch_limit', function () {
	return 150;
} );
  1. Export Products from WooCommerce Admin
  2. The created file should have the CSV column titles in the first row

Check Exporting flow in general

  1. Use any test site with any number of products
  2. Export Products from WooCommerce Admin
  3. The created file should have the CSV column titles in the first row

Allows set downloadable permissions to any downloadable product in any order #29901

  1. Create an order from either within the dashboard or normal checkout that does not include the product we are going to manually grant access to later
  2. Make sure you've fully saved the order
  3. Enter the downloadable product name into the 'Downloadable product permissions' input
  4. Click 'Grant access' Should be no errors and customer and access download from My-Account

apply filter to errant hardcoded redirect on logout for custom endpoint #29967

  1. Login as a customer to test site via my-account
  2. Logout
  3. Confirm you have logged out and are on my-account login screen

changes on WCS banner #30081

  1. Set up a store with a US-based address
  2. Go to /wp-admin/admin.php?page=wc-addons
  3. Confirm these banners appear
  4. Try installing WooCommerce Shipping

Fix/29235 #30194

  1. Setup a new site without WC.
  2. Install WC
  3. Check that you see the newly created page Refund and Returns Policy and it is a draft.
  4. You should see a new inbox note screenshot below.
  5. On this note, you can click on the Edit page link and it will take you to edit the draft page of the Refund and Returns. This will also dismiss the note.
  6. You can also click on Dismiss button and this note should not appear again.

Fix: "search product" block not displaying textbox in shop page #30287

  1. Go to the Shop page editor.
  2. Add a Product Search block.
  3. Publish the page.
  4. Check the published Shop page to see, the search box should be showing and working.

Use WC Version for loading scripts instead of hardcoding them closes … #30301

  1. Ensure you're not getting any JS errors in console from loading up a product.
  2. Make sure any JS related actions work such as changing variations, zooming, clicking on variation thumbnails.

WooCommerce API Updates:

Refunds add api_restock param to restock items #30179

  1. Create an order with a product whose stock is managed.
  2. Refund the order using the API. Do not specify the api_restock parameter. Verify that the stock is restored. POST /wp-json/wc/v3/orders/<id>/refunds
  3. Create another order with a product whose stock is managed.
  4. Refund the order using the API, this time specifying the api_restock parameter with a false value. Verify that the stock is not restored.

Add support for Shipping Phone Number in Order and Customer classes #30097

  1. Edit or add an order in wp admin WooCommerce > Orders
  2. Click edit besides the shipping address
  3. Add phone number and save
  4. Do a request to /wp-json/wc/v3/orders/<id> and confirm new shipping phone field exists with the shipping address.
  "shipping": {
       "first_name": "",
       "last_name": "",
       "company": "",
       "address_1": "",
       "address_2": "",
       "city": "",
       "state": "",
       "postcode": "",
       "country": "",
       "phone": ""
   },
Clone this wiki locally