woocommerce/plugins/woocommerce-blocks/tests/e2e/utils
Tarun Vijwani 506499dec4
Prevent prefilling of the billing address with the shipping address in the Checkout block for the Guest Shopper (#44347)
* Clear billing address when useShippingAsBilling checkbox is unchecked

* Add billing address sync with server

* Add useRef hook to store previous billing address and update sync functions

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Revert "Add useRef hook to store previous billing address and update sync functions"

This reverts commit 7bc3312ab7.

* Added condition to clear address only for guest users

* Add E2E test to check billing address form is empty for Guest shopper

* Fix typo

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Updated docs-manifest.json

* Revert "Updated docs-manifest.json"

This reverts commit 20d578a9d6.

* Include company field in the E2E test

* Replace beforeAll with beforeEach

* Skip country reset to keep consistency with Shortcode Checkout

* Remove sync billing address on server

* Update E2E test to include the shipping address check

* Remove unsed  imports

* Clear address fields except country and state

* Optimize the billing and shipping address check with switch statement

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2024-02-16 16:10:51 +04:00
..
api Add Playwright tests for All Reviews, Reviews by Product and Reviews by Category blocks (#42903) 2023-12-22 09:33:18 +01:00
editor Getting the Product Collection location/context (#43997) 2024-02-12 20:59:40 +01:00
frontend Prevent prefilling of the billing address with the shipping address in the Checkout block for the Guest Shopper (#44347) 2024-02-16 16:10:51 +04:00
local-pickup Migrate coupon- and shipping-related tests to Playwright (#44108) 2024-01-31 01:23:09 -08:00
mini-cart Migrate coupon- and shipping-related tests to Playwright (#44108) 2024-01-31 01:23:09 -08:00
navigation Rename commands and directories for Playwright and JEST e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/10493) 2023-08-08 17:58:12 +01:00
performance E2E tests migration: performance -> cart (#42943) 2024-01-15 21:03:24 +04:00
shipping Migrate coupon- and shipping-related tests to Playwright (#44108) 2024-01-31 01:23:09 -08:00
storeApi Add Playwright tests for All Reviews, Reviews by Product and Reviews by Category blocks (#42903) 2023-12-22 09:33:18 +01:00
wpCli Migrate coupon- and shipping-related tests to Playwright (#44108) 2024-01-31 01:23:09 -08:00
cli.ts Support testing many variants of a block at runtime via dynamically generated templates (#44223) 2024-02-17 01:00:36 +13:00
constants.ts Add e2e tests to verify block templates can be customized if the theme has its own custom templates (#43650) 2024-01-18 11:39:24 +01:00
create-dynamic-content.ts Support testing many variants of a block at runtime via dynamically generated templates (#44223) 2024-02-17 01:00:36 +13:00
index.ts Migrate coupon- and shipping-related tests to Playwright (#44108) 2024-01-31 01:23:09 -08:00
use-block-theme.ts Rename commands and directories for Playwright and JEST e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/10493) 2023-08-08 17:58:12 +01:00