woocommerce/plugins/woocommerce-blocks/tests/utils
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
..
clickLink.js Fix E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/6415) 2022-06-13 11:15:29 +02:00
compatibility-notice.js Fix ESLint: use window.localstorage instead localstorage woocommerce/woocommerce-blocks#6442 (https://github.com/woocommerce/woocommerce-blocks/pull/6540) 2022-06-09 14:47:17 +02:00
constants.js E2E: Fixing failed tests with Gutenberg (https://github.com/woocommerce/woocommerce-blocks/pull/7554) 2022-11-16 08:52:51 +07:00
find-by-text.ts Update @woocmmerce/eslint-plugin to 2.0.0 (https://github.com/woocommerce/woocommerce-blocks/pull/6203) 2022-04-08 14:47:19 +01:00
find-label-with-text.js Enable and fix all jsdoc rule violations (https://github.com/woocommerce/woocommerce-blocks/pull/3168) 2020-09-20 19:54:08 -04:00
find-tools-panel-with-title.ts Fix broken E2E tests cause by edit template button class name change in latest Gutenberg release (https://github.com/woocommerce/woocommerce-blocks/pull/8107) 2023-01-09 23:44:53 +07:00
get-block-page-permalink.js Remove custom ensureSidebarOpened() (https://github.com/woocommerce/woocommerce-blocks/pull/6359) 2022-05-05 07:14:07 +07:00
get-fixture-products-data.ts Product Query E2E tests: Sale and Stock status filters tests (https://github.com/woocommerce/woocommerce-blocks/pull/7684) 2022-11-21 08:08:12 +07:00
get-form-element-id-by-label.ts Fix broken E2E tests cause by edit template button class name change in latest Gutenberg release (https://github.com/woocommerce/woocommerce-blocks/pull/8107) 2023-01-09 23:44:53 +07:00
get-normal-page-permalink.js Ensure cart changes remain after using back button to get back to the cart (https://github.com/woocommerce/woocommerce-blocks/pull/3960) 2021-03-24 13:28:11 +00:00
get-toggle-id-by-label.ts Fix broken E2E tests cause by edit template button class name change in latest Gutenberg release (https://github.com/woocommerce/woocommerce-blocks/pull/8107) 2023-01-09 23:44:53 +07:00
index.js Fix E2E tests with WP 6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/8928) 2023-04-03 15:02:36 +02:00
insert-block-using-quick-inserter.ts E2E: Fixing failed tests with Gutenberg (https://github.com/woocommerce/woocommerce-blocks/pull/7554) 2022-11-16 08:52:51 +07:00
insert-inner-block.ts E2E: Fixing failed tests with Gutenberg (https://github.com/woocommerce/woocommerce-blocks/pull/7554) 2022-11-16 08:52:51 +07:00
insert-shortcode-block.ts E2E: Product Query: Popular filters presets (https://github.com/woocommerce/woocommerce-blocks/pull/7749) 2023-01-05 18:21:22 +07:00
merchant.ts Fix Local pickup e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/8745) 2023-03-15 10:59:04 +04:00
path-expressions.js Shopper → Cart → Can update product quantity (https://github.com/woocommerce/woocommerce-blocks/pull/6025) 2022-03-23 13:51:56 +01:00
performance.ts Try adding performance tests (https://github.com/woocommerce/woocommerce-blocks/pull/6119) 2022-04-04 13:30:07 +01:00
run-cli-from-test.js E2E tests for translated Cart & Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/6101) 2022-03-28 16:20:59 +01:00
save-or-publish.js Add E2E tests for Filter blocks (Price, Attribute, and Active Filters) (https://github.com/woocommerce/woocommerce-blocks/pull/4562) 2021-12-23 17:26:10 +01:00
scroll-to.ts Add initial e2e tests to Checkout block frontend (https://github.com/woocommerce/woocommerce-blocks/pull/4004) 2021-04-14 15:50:27 +01:00
select-block-by-name.js Update Checkout to Checkout i2 (https://github.com/woocommerce/woocommerce-blocks/pull/4745) 2021-09-16 13:16:21 +01:00
selectors.ts E2E: Fixing failed tests with Gutenberg (https://github.com/woocommerce/woocommerce-blocks/pull/7554) 2022-11-16 08:52:51 +07:00
shopper.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
taxes.ts Fix/flakey checkout tests (https://github.com/woocommerce/woocommerce-blocks/pull/7508) 2022-10-28 13:41:28 +01:00
visit-block-page.js Fix e2e tests related to inserting blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8462) 2023-02-20 10:10:41 +01:00