woocommerce/plugins/woocommerce-blocks/tests/e2e/specs/shopper
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
..
cart-checkout 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
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.ts Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
filter-products-by-attribute.test.ts Filter Products by Attribute e2e test: wait until networkidle before running tests (https://github.com/woocommerce/woocommerce-blocks/pull/9083) 2023-04-19 10:19:49 +02:00
filter-products-by-price.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
filter-products-by-rating.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
filter-products-by-stock.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
mini-cart.test.js Make the start shopping button show the theme style (https://github.com/woocommerce/woocommerce-blocks/pull/8567) 2023-03-03 10:55:28 +01: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