This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Critical Flows Testing Directions
Saad Tarhi edited this page Feb 15, 2022
·
2 revisions
- WordPress 5.9+ version
- WooCommerce 6.2.0+ version
- Woo Blocks 7.0.0-dev+ version
- WooCommerce Payments 3.6.1+ version
- Set the new created Cart & Checkout blocks as your Cart & Checkout pages under the WooCommerce menu -> Advanced -> Page setup -> Cart page / Checkout page
- WooCommerce Payments: Test Site Setup Guide
- WooCommerce Payments Test Account Setup Guide
- Setting up WooCommerce Payments for testing locally Via LocalWP
This PR #5823 added some initial setup to our testing environment:
-
Cart block
page -
Checkout block
page -
Terms and Conditions
page -
Privacy Policy
page - WooCommerce sample products
- etc.
Go to the Cart block
page. You should be able to see the Cart block
Note: This feature is not supported in the current version (7.0.0-dev).
- Change Site Language: WordPress Settings -> General -> Site Language
- Check the
Cart block
page.
- Empty your cart if necessary
- Go to the
Cart block
page. You should see the Checkout Block’s empty state:
- Set up Taxes in WooCommerce
- Visit your store and add a product to the cart
- Go to the
Cart block
page - Check if the tax is displayed.
- Visit your store and add a product to the cart
- Go to
Cart block
page - Update the product quantity using the “quantity selector”. You should be able to see the price being updated accordingly
- Visit your store and add more than one product to the cart
- Go to the
Cart block
page - Remove an item from the list of added products. You should be able to see the price being updated accordingly.
—
- Visit your store and add a product to the cart
- Go to
Cart block
page - Click on the “Proceed to Checkout” button. You should be redirected to the “checkout” page.
- Got to the
Checkout block
page’s editor - Scroll down to the “Shipping options” item
- Click on the “Configure Shipping Options” button. You should be redirected to the shipping settings within the WooCommerce plugin
- Got to the
Checkout block
page’s editor - Open the “List View” and select the “Payment options” item
- Open the Block Editor settings sidebar -> select the “Block” tab -> under “Methods” you will be able to access and manage your payment methods
- Got to the
Checkout block
page’s editor - Open the “List View” and select the “Terms and Conditions” item
- Setup your T&S by following the links on this item
- Enable guest checkout if necessary. Go to WooCommerce > Settings > Accounts & Privacy > Guest checkout > Check “Allow customers to place orders without an account”
- ??
- Create a test page
- Add the Checkout Block
- Publish page
- Go to the
Checkout block
page. You should be able to see the Checkout block
Note: This feature is not supported in the current version (7.0.0-dev).
- Change Site Language: WordPress Settings -> General -> Site Language
- Check the Go to the
Checkout block
page.
- Empty your cart if necessary
- Go to the
Checkout block
page. You should see the Checkout Block’s empty state:
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Clear the form if necessary
- Scroll to the bottom and click on the “Place Order” button. You should see warnings for required fields
- Set up Taxes in WooCommerce
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Check the tax displayed.
- Add a single-use coupon (see Usage Limits section)
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Apply coupon once. The result should be successful.
- Make the purchase. (Setup Woo payments Dev Mode or setup Stripe test mode)
- Add a product to the cart and apply the same coupon via the Cart block. You should get the following error message: “Coupon usage limit has been reached.”
- Set up Shipping in WooCommerce
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Adjust shipping Address
- Set up Shipping in WooCommerce
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Uncheck the “Use same address for billing” option. The “Billing Address” section” should be displayed
- Fill in the second address
—
—
—
- Set up Shipping in WooCommerce (Add more than one shipping option)
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Scroll down to the “Shipping options” section and choose another shipping option. You should be able to see changes reflected in the price
- Set up multiple payment options using WooCommerce Payments
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Scroll down to the “Payment options” section and choose another payment option, then place an order. (Setup Woo payments Dev Mode to test payments)
- Enable guest checkout if necessary. Go to WooCommerce > Settings > Accounts & Privacy > Guest checkout > Check “Allow customers to place orders without an account”
- Visit your store in incognito mode (or log out from your WordPress website) and add a product to the cart
- Go to the
Checkout block
page and place an order.
—
- Visit your store and add a product to the cart
- Go to the
Checkout block
page - Place your order. You should be redirected to the order confirmation page:
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.
Testing
API documentation