woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
45 stars 21 forks source link

Set WPCOM_API_STATUS transient for E2E tests #2588

Closed martynmjones closed 1 week ago

martynmjones commented 1 week ago

Changes proposed in this Pull Request:

Closes #2587

Updates E2E test data to set the default value for WPCOM_API_STATUS.

Detailed test instructions:

  1. Checkout fix/2587-e2e-tests
  2. npm run test:e2e
codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.3%. Comparing base (bf5c219) to head (1c6a902). Report is 2 commits behind head on develop.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/woocommerce/google-listings-and-ads/pull/2588/graphs/tree.svg?width=650&height=150&src=pr&token=UROWUPF1LX&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=woocommerce)](https://app.codecov.io/gh/woocommerce/google-listings-and-ads/pull/2588?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=woocommerce) ```diff @@ Coverage Diff @@ ## develop #2588 +/- ## ========================================= Coverage 65.3% 65.3% Complexity 4596 4596 ========================================= Files 474 474 Lines 17893 17893 ========================================= Hits 11685 11685 Misses 6208 6208 ``` | [Flag](https://app.codecov.io/gh/woocommerce/google-listings-and-ads/pull/2588/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=woocommerce) | Coverage Δ | | |---|---|---| | [php-unit-tests](https://app.codecov.io/gh/woocommerce/google-listings-and-ads/pull/2588/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=woocommerce) | `65.3% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=woocommerce#carryforward-flags-in-the-pull-request-comment) to find out more.
martynmjones commented 1 week ago

Merged without review as it's a small dev facing change