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

Snackbar error message showing as "undefined" with WC `9.2.0-rc.1` #2507

Closed martynmjones closed 1 month ago

martynmjones commented 1 month ago

Describe the bug:

Using the new product editor we get an "undefined" error message if an input on the Google for WooCommerce tab has an invalid value.

Steps to reproduce:

  1. Install WooCommerce 9.2.0-rc.1
  2. Enable the new product editor
  3. Edit a product and click on the Google for WooCommerce tab
  4. Enter an invalid value for Availability Date
  5. Click Save draft or Publish
  6. See error
Screenshot 2024-08-07 at 14 42 06

Additional details:

Surfaced by failing E2E test during compat testing. See #2506

The Multipack input also has some validation issues and if we attempt to save a product after entering a decimal value in the field we get an empty Snackback and no error under the field:

Screenshot 2024-08-07 at 21 58 27

Related changes in core