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

Testing Coupons Feature in WC 4.x

Jason Conroy edited this page Jul 23, 2020 · 6 revisions

Testing instructions

Flow 1 - Coupon Menu

  • Setup a new site with 4.x
  • Ensure coupon management is enabled
  • Navigate to WooCommerce > Coupons (click the menu item)
  • Confirm you are redirected to the new location WooCommerce > Marketing > Coupons and that the admin notice is visible at the top of the page.
  • Click the action button “Remove legacy coupon menu”
  • The notice should close, you should be redirected to WooCommerce > Marketing > Coupons and legacy menu item WooCommerce > Coupons should no longer be available.
  • Navigate to any other admin page
  • Confirm the notice no longer appears
  • Navigate to WooCommerce > Marketing > Coupons

Flow 2 - Add Coupons

  • Setup a new site with 4.x
  • Ensure coupon management is enabled
  • Navigate to WooCommerce > Marketing > Coupons
  • Add a coupon
  • Confirm coupon is visible on WooCommerce > Marketing > Coupons
  • Confirm able to perform coupon management actions like search, filter, edit, trash

Flow 3 - Disable Coupon Management

  • Setup a new site with 4.x
  • Ensure coupon management is enabled
  • Confirm WooCommerce > Marketing > Coupons is visible
  • Now go and disable coupon management
  • Confirm WooCommerce > Marketing > Coupons is not visible (note it will require a page refresh after saving the option for the menu items to update so you will need to click on another page or refresh - it does the same thing for the coupon menu in the existing location)

Flow 4 - Recommended Coupon Extensions

Recommended extensions icons are currently a default grey icon - we can update remotely.

Flow 5 - Installed Recommended Extension

Flow 6 - WooCommerce Knowledge Base

Currently on 3 Coupon related posts.

  • Setup a new site with 4.x
  • Ensure coupon management is enabled
  • Navigate to WooCommerce > Marketing > Coupons
  • Confirm that the “Knowledgebase Articles” card is visible
  • Confirm that article can be clicked on and that you are directed to the article on WooCommerce.com

Flow 7 - Profile Colours Picked up by Marketing Pages

  • Setup a new site with 4.x
  • Change your profile color scheme
  • Navigate to WooCommerce > Marketing and WooCommerce > Marketing > Coupons
  • Confirm color schemes are adjusted to accommodate profile color scheme changes

Technical Notes

WooCommerce Core e2e

Coupons e2e tests here: https://github.com/woocommerce/woocommerce/blob/master/tests/e2e/specs/wp-admin/wp-admin-coupon-new.test.js simply go straight to wp-admin/post-new.php?post_type=shop_coupon which hasn’t changed. In theory everything should work as normal.

https://github.com/woocommerce/woocommerce/blob/296112cbea4f595e9f40983ed549c694ad0ee1ca/tests/e2e/utils/flows.js#L23

Clone this wiki locally