woocommerce/plugins/woocommerce-blocks/tests/e2e/specs/backend
Thomas Roberts 991e407fa9 Remove WC Core shipping settings if Cart/Checkout blocks are in use (https://github.com/woocommerce/woocommerce-blocks/pull/8679)
* Add CartCheckoutUtils class

This class will store reusable methods relating to Cart/Checkout Blocks, i.e. whether they are used on the Cart/Checkout page.

* Update ShippingController to use the new CartCheckoutUtils function

This will reduce code duplication when checking if the Cart/Checkout blocks are in use on the Cart/Checkout page.

* Add filter to remove shipping settings when Cart/Checkout are default

* Ensure setting displays correctly if cart is default but not checkout

* Add tests to ensure core shipping settings update correctly

* Add setCartCheckoutPages function to update set the cart/checkout page

* Force shipping to be enabled if the Checkout block is in use.

* Add filter to override cost requires address option

* Add shippingCostRequiresAddress option

* Check if the address is required before showing rates

* Show shipping rates in editor

* Add shippingCostRequiresAddress attribute to shipping methods block

* Update frontend type to show shippingCostRequiresAddress is a prop

* Add control to toggle shippingCostRequiresAddress option

* Show address notice in the correct scenario

* Send shippingCostRequiresAddress to Block in front end context

* Add e2e test for editor control

* Add e2e tests for shipping options on the front end

* Add updateAttributeInSiblingBlock function

* Add shippingCostRequiresAddress to shipping method block

* Ensure attribute is updated in both blocks when editing

* In Shipping Methods Block, show correct component based on block setting

* Show correct block in editor

* Remove broken test from PR

* Clean up updateAttributeInSiblingBlock

* Add setCartCheckoutPages function to update set the cart/checkout page

* Add tests to ensure core shipping settings update correctly

* Add isAddressComplete function

Borrowed from woocommerce/woocommerce-blocks#8141

* Check if the address is required before showing rates

* Show shipping rates in editor

* Show address notice in the correct scenario

* Add e2e tests for shipping options on the front end

* Ensure errorId is passed to StateInput

* Add fullShippingAddressPushed action to wc/store/cart

* Add fullShippingAddressPushed case to reducer

* Ensure fullShippingAddressPushed is set when initialising cart store

* Add fullShippingAddressPushed selector and default state entry

* Add shippingAddressHasValidationErrors util function

* Do not overwrite addresses when selecting a rate

* Set whether full address has been pushed when saving address changes

* In Shipping Methods Block, show correct component based on block setting

* Don't show from price if rates should be hidden until address entered

* Check city validation errors to assert if shipping address is valid

* Rename merchant.js to merchant.ts

* Move local pickup functions to common merchant util

* Update local pickup tests to use common merchant utils

* Add test to ensure setting toggles in both blocks

* Add navigating to settings and saving in merchant util

* Create addPickupLocation merchant util

* Add test for local pickup and require full address

* Make sure correct conditions are met to show shipping options

* Ensure checkbox is checked during local pickup tests

* Unset the checkbox when tests are finished running

* Update checkout block fixture

* Prevent error in unit tests

* Import validation store key from constants

Required because importing from the index causes the validation data store to register twice

* Update checkout terms test to wait for button not to be disabled

* Revert "Add isAddressComplete function"

This reverts commit 9967dc0d4f10cf638859ae085e6f4cc2901dd299.
2023-03-13 11:49:28 +00:00
..
__fixtures__ Remove WC Core shipping settings if Cart/Checkout blocks are in use (https://github.com/woocommerce/woocommerce-blocks/pull/8679) 2023-03-13 11:49:28 +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 (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01:00
active-filters.test.js Fix E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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 (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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 Fix e2e tests related to inserting blocks (https://github.com/woocommerce/woocommerce-blocks/pull/8462) 2023-02-20 10:10:41 +01: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 Remove WC Core shipping settings if Cart/Checkout blocks are in use (https://github.com/woocommerce/woocommerce-blocks/pull/8679) 2023-03-13 11:49:28 +00:00
customer-account.test.js Fix E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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 (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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 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-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 (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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 (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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
single-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
site-editing-templates.test.js Update @wordpress/e2e-test-utils package (https://github.com/woocommerce/woocommerce-blocks/pull/7955) 2022-12-22 16:47:23 +01:00
stock-filter.test.js Fix E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/8263) 2023-01-25 16:41:22 +01: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