We would like to get all important WCS flows under E2E tests this quarter so we have a strong foundation of tests to build on when we need to refactor and build new functionality.
The goal of this Spike is to check for flows that are not currently covered. We should also check for flows that affect site customers (e.g. automated taxes and live rates).
Note: it's not the same codebase, but while we're at it, we should also include the wc-admin onboarding prompt in this Spike.
Output:
[Type] E2E )@Ferdev, already created some good issues for this, so these should be included in the master thread:
Tests:
https://github.com/Automattic/woocommerce-services/issues/1915
https://github.com/Automattic/woocommerce-services/issues/1918
https://github.com/Automattic/woocommerce-services/issues/1917
https://github.com/Automattic/woocommerce-services/issues/1916
Infrastructure Improvements:
https://github.com/Automattic/woocommerce-services/issues/1914
https://github.com/Automattic/woocommerce-services/issues/1898
~For getting started with Looker, there's some good in the comments here: https://github.com/Automattic/woocommerce-shipping-issues/issues/22~ disregard 馃槃 too many issues open
I agree to focusing on identifying and testing the critical flows, but not every use-cases. End to end test takes long time to run and it also has a high maintenance cost. I vote for the "test pyramid" approach where we focus more on the bottom of the pyramid than the top.
As part of this, let's also look at what Proton has done to run core tests in Docker to make debugging tests much easier. We should determine how easy this would be for us to adopt and how much value we think we can get from it.
+1 to focusing on the critical flows. Let's also update the linked issues as part of this to be really clear about what steps/flow the E2E should follow, so none of our PRs get lost in testing every possible use case.
hey @c-shultz, was this comment intended for another issue? https://github.com/Automattic/woocommerce-services/issues/2002#issuecomment-613142168
Lol. yep, I'm not sure what happened there. I had a few issues open at the same time.
This is based on the information already shared by @Ferdev and @c-shultz.
A user trying to accomplish a goal and how this user click through WCS. Some of these user flow are the following. If any of these fails, then the user can't buy label and that means WCS is not working properly:
How the user interact with WCS also depends on the order status. New order and existing order should provide different user flow. Some of the following overlaps the user flow listed above. But I wanted to list them out and consolidate after.
This page is used for debugging and would help troubleshoot when creating a support ticket.
wp-admin/admin.php?page=wc-status&tab=connect
Most helpful comment
~For getting started with Looker, there's some good in the comments here: https://github.com/Automattic/woocommerce-shipping-issues/issues/22~ disregard 馃槃 too many issues open