As a developer, I'd like to have automated tests to help me assert the quality of the extension in regards to tracked product data.
Is your feature request related to a problem?
get_formatted_product is not covered by tests
How to reproduce the problem
Describe the solution you'd like
We could add PHP unit tests to check get_formatted_product for simple, variable and bundled products.
We can also consider adding E2Es to somewhat test Block-based events' data.
This is a follow-up from https://github.com/woocommerce/woocommerce-google-analytics-integration/pull/439
~User~Developer story
As a developer, I'd like to have automated tests to help me assert the quality of the extension in regards to tracked product data.
Is your feature request related to a problem?
get_formatted_product
is not covered by testsHow to reproduce the problem
Describe the solution you'd like
We could add PHP unit tests to check
get_formatted_product
for simple, variable and bundled products. We can also consider adding E2Es to somewhat test Block-based events' data.Describe alternatives you've considered
Technical
Acceptance criteria
Unknowns
Out of bounds/rabbit holes