woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts
Ilyas Foo 0d461fa6e7
Add unit tests for some tracks in product editor (#48245)
* Add tests for ProductPage

* Add tests for ProductVariationPage

* Add test for product_tab_click event

* Add test for product_editor_feedback_bar_turnoff_editor_click event

* Add test for product_dropdown_option_click event

* Add test for product_add_view track

* Changelogs

* Changelog

* Lint

* Add product_edit_view test and falsey test

* Fix test name
2024-06-10 23:05:20 +08:00
..
add-term-tracking
attributes-tracking
beta-features-tracking-modal Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
category-tracking
command-palette
command-palette-analytics
marketing-coupons
navigation-opt-out
onboarding-homepage-notice
onboarding-load-sample-products-notice
onboarding-product-import-notice
onboarding-product-notice
onboarding-tax-notice
order-tracking
payment-method-promotions Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
print-shipping-label-banner Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
product-category-metabox
product-import-tracking
product-tour
product-tracking Add unit tests for some tracks in product editor (#48245) 2024-06-10 23:05:20 +08:00
settings-tracking
shipping-settings-region-picker
tags-tracking
variable-product-tour
wc-addons-tour
woo-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-enable-autorenew Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-plugin-update-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-renew-subscription Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-subscriptions-notice Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004) 2024-05-31 08:34:36 +07:00
README.md

README.md

Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts in the Webpack config will automatically build these scripts.

Scripts must be manually enqueued with any necessary dependencies. For example, onboarding-homepage-notice uses the WooCommerce navigation package:

wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );