woocommerce/plugins/woocommerce-blocks/tests/utils
Saad Tarhi c636cb1bbe Shopper → Checkout → Can apply single-use coupon once (https://github.com/woocommerce/woocommerce-blocks/pull/6174)
* Add "single-use" coupon to the fixture data

* Create a first draft of the coupon e2e test

* Create single use coupon code constant

* Create "applyCouponFromCheckout" function

* Remove the "single-use" coupon from the fixture data

* Setup coupon creation using Woo's Rest API

* Add single-use coupon E2E test

* Move discount XPath definition to the expressions file

* Clean comments

* Remove unnecessary delay function

* Refactor to a more human friendly check

* Clear the setup in the afterAll branch (delete coupon)

Co-authored-by: Saad Tarhi <saad.tarhi@automattic.com>
2022-04-01 23:09:54 +00:00
..
compatibility-notice.js Shopper → Checkout → Can have different shipping and billing addresses (https://github.com/woocommerce/woocommerce-blocks/pull/5860) 2022-03-31 13:10:50 +02:00
constants.js Shopper → Checkout → Can have different shipping and billing addresses (https://github.com/woocommerce/woocommerce-blocks/pull/5860) 2022-03-31 13:10:50 +02:00
ensure-sidebar-opened.ts Shopper → Mini Cart → Can see the icon with a badge (https://github.com/woocommerce/woocommerce-blocks/pull/5877) 2022-02-22 09:50:59 +07:00
find-by-text.ts Add Checkout Order Summary inner block tests (https://github.com/woocommerce/woocommerce-blocks/pull/5675) 2022-01-31 10:53:08 +00: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
get-block-page-permalink.js Shopper → Mini Cart → Can see the icon with a badge (https://github.com/woocommerce/woocommerce-blocks/pull/5877) 2022-02-22 09:50:59 +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
index.js Shopper → Checkout → Can have different shipping and billing addresses (https://github.com/woocommerce/woocommerce-blocks/pull/5860) 2022-03-31 13:10:50 +02:00
merchant.js E2E tests for translated Cart & Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/6101) 2022-03-28 16:20:59 +01: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
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
shopper.js Shopper → Checkout → Can apply single-use coupon once (https://github.com/woocommerce/woocommerce-blocks/pull/6174) 2022-04-01 23:09:54 +00:00
taxes.ts WIP: Add Inner blocks to order summary (https://github.com/woocommerce/woocommerce-blocks/pull/6065) 2022-04-01 15:45:18 +02:00
visit-block-page.js Fix e2e tests welcome guide/m1 mac support (https://github.com/woocommerce/woocommerce-blocks/pull/5096) 2021-11-09 13:18:55 +00:00