woocommerce/plugins/woocommerce-blocks/tests/e2e/specs/backend
Thomas Roberts 30aecd2068 Reinstate "Hide shipping costs until an address is entered" but disable it when using local pickup (https://github.com/woocommerce/woocommerce-blocks/pull/8964)
* Add class property to track local pickup enabled

* Force shipping enabled only when local pickup is also enabled

Otherwise, skip filtering and leave it to the current value

* Disabled and add text to WC Core hide shipping option

* Skip forcing shipping to be enabled in all cases

* Remove WC Core setting changes for hidden shipping rates option

* Add warning to local pickup UI about hidden rates setting in core

* Add local_pickup_enabled util function

* Revert "Skip forcing shipping to be enabled in all cases"

This reverts commit 0bf1886e73d791f7828ac86988f681cdce808b12.

* Check if local pickup is enabled before force enabling shipping

* Show correct shipping placeholder if rates hidden until address entered

* Remove tests for removed functionality

* Remove shippingCostRequiresAddress prop

* Update tests for shipping settings

* Remove irrelevant tests and fix existing ones

* Fix typo in comment

* Disable local pickup after each test

* Get shipping data from useCustomerData hook

* Change div in help prop to span

This prevents a DOM Nesting error, div cannot appear as a descendant of p

* Prevent hide shipping notice showing if the setting was originally off
2023-04-22 02:10:11 -07:00
..
__fixtures__ Remove Single Product Block (https://github.com/woocommerce/woocommerce-blocks/pull/8763) 2023-03-20 13:27:23 +00:00
__snapshots__ E2E: Fixing failed tests with Gutenberg (https://github.com/woocommerce/woocommerce-blocks/pull/7554) 2022-11-16 08:52:51 +07:00
product-query Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
active-filters.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
add-to-cart-form.test.js Fix add to cart form test (https://github.com/woocommerce/woocommerce-blocks/pull/8622) 2023-03-03 13:02:36 +01:00
all-products.test.js Fix e2e tests related to inserting blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8462) 2023-02-20 10:10:41 +01:00
all-reviews.test.js Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00
attribute-filter.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
breadcrumbs.test.js Fix e2e tests of the Product Details block (https://github.com/woocommerce/woocommerce-blocks/pull/8470) 2023-02-21 14:04:35 +01:00
cart.test.js Set Cart and Checkout blocks to be wide aligned by default (https://github.com/woocommerce/woocommerce-blocks/pull/8899) 2023-04-06 06:42:38 -07:00
catalog-sorting.test.js Fix e2e tests related to inserting blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8462) 2023-02-20 10:10:41 +01:00
checkout.test.js Reinstate "Hide shipping costs until an address is entered" but disable it when using local pickup (https://github.com/woocommerce/woocommerce-blocks/pull/8964) 2023-04-22 02:10:11 -07:00
customer-account.test.js E2E tests fix: enable the attribute lookup direct updates settings (https://github.com/woocommerce/woocommerce-blocks/pull/9029) 2023-04-14 09:05:08 +02:00
featured-category.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
featured-product.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
handpicked-products.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
mini-cart.test.js Fix e2e tests related to inserting blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8462) 2023-02-20 10:10:41 +01:00
price-filter.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
product-best-sellers.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
product-categories.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
product-category.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
product-new.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
product-on-sale.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
product-query.test.ts Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
product-results-count.test.js Fix e2e tests of the Product Details block (https://github.com/woocommerce/woocommerce-blocks/pull/8470) 2023-02-21 14:04:35 +01:00
product-search-legacy.test.ts Product Search E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/7005) 2022-09-01 18:20:20 +07:00
product-search.test.ts Product Search E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/7005) 2022-09-01 18:20:20 +07:00
product-tag.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
product-top-rated.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
products-by-attribute.test.js Enable ESLint for E2E folder woocommerce/woocommerce-blocks#6410 (https://github.com/woocommerce/woocommerce-blocks/pull/6413) 2022-05-23 14:05:30 +02:00
rating-filter.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
reviews-by-category.test.js Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00
reviews-by-product.test.js Fix failing e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/4068) 2021-04-16 11:48:27 +01:00
single-product-details.test.js Fix e2e tests of the Product Details block (https://github.com/woocommerce/woocommerce-blocks/pull/8470) 2023-02-21 14:04:35 +01:00
site-editing-templates.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
stock-filter.test.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
store-notices.test.js Add Store Notices block (https://github.com/woocommerce/woocommerce-blocks/pull/8157) 2023-01-18 13:40:30 +01:00