Commit Graph

2936 Commits

Author SHA1 Message Date
vedanshujain 783cb4b63c Add action for running e2e tests. 2021-01-29 16:26:03 +05:30
Claudio Sanches 6701ce9c9d
Merge pull request #26983 from woocommerce/fix/25082
Use tax location from order while computing tax in discount.
2021-01-28 16:59:59 -03:00
Ron Rennick e1a9fa0dc6 Merge branch 'master' into packages/env/clean-up-console 2021-01-28 14:21:12 -04:00
Ron Rennick a252b3a3d8 use workaround for coupon already applied 2021-01-28 10:39:48 -04:00
Ron Rennick de759607d1 use correct coupon codes to total $0 2021-01-27 21:04:01 -04:00
Ron Rennick 1195e79c17 clear coupon code for entry 2021-01-27 20:34:56 -04:00
Ron Rennick d18dc96158 make cart coupon test more granular 2021-01-27 17:15:39 -04:00
Ron Rennick 694aff70cb Merge branch 'master' into packages/env/clean-up-console 2021-01-27 10:23:08 -04:00
Ron Rennick bb4e654cce
Return jest error for Travis (#28929)
* Return jest error for Travis

* fix onboarding flow for WCA 1.9.0
2021-01-26 21:59:40 +01:00
Ron Rennick f48ca7cade eliminate repeated missing resource messages in E2E 2021-01-26 11:42:51 -04:00
Ron Rennick d882433db4
Merge pull request #28661 from woocommerce/e2e-shopper-cart-apply-coupon
Add new e2e test shopper cart apply coupon
2021-01-25 13:34:23 -04:00
Ron Rennick 6134d0ffc8
Merge pull request #28867 from woocommerce/add/e2e-shopper-registered-checkout
E2E: add registered shopper checkout test
2021-01-25 12:52:48 -04:00
Ron Rennick 0eafe83be6 Merge branch 'master' into e2e-shopper-cart-apply-coupon 2021-01-25 12:24:19 -04:00
Ron Rennick 09dedb5520
bump version in E2E packages (#28823)
* bump version in core-tests, utils

* bump api package version, update changelog

* bump e2e-environment to 0.2.0
2021-01-22 14:22:33 +01:00
Leif Singer 7154b61283 move verifyOrder into merchant 2021-01-22 12:44:18 +01:00
Leif Singer 1bafa98a66 move registered customer checkout test to general checkout tests 2021-01-22 11:16:54 +01:00
Leif Singer 197a126aab E2E: add registered shopper checkout test 2021-01-22 11:16:53 +01:00
Ron Rennick 10880ae6e1
add admin user E2E config support (#28656)
* add admin user config support

* use merchant.login() is jest setup

* remove customer config from builtin readme

* fix missed merge change

Co-authored-by: Leif Singer <git@singer.sh>
2021-01-19 16:02:08 +01:00
Ron Rennick 8721b5d9d9
update core-tests, utils package readmes (#28715) 2021-01-19 14:00:59 +01:00
Claudio Sanches ea54d5ad5f
Merge pull request #28679 from woocommerce/fix/woocommerce-gutenberg-products-block-issues-3565
Show correct WooCommerce pages status if they are using blocks vs shortcode.
2021-01-18 19:26:34 -03:00
Roy Ho 4c548951f4
Merge pull request #28521 from woocommerce/fix/26475
Create additional download permissions on product save if needed
2021-01-18 06:51:57 -08:00
Roy Ho 56e67b1ef8
Merge pull request #28814 from woocommerce/fix/migration/27688
Add migration to fix incorrect product review count.
2021-01-18 06:48:46 -08:00
vedanshujain 2240d3a6e4 Fix typos. 2021-01-18 19:52:20 +05:30
vedanshujain 1758c2b58c Add tests for #28835 2021-01-18 17:26:19 +05:30
Veljko 00172c5085 Update util changelog 2021-01-15 18:30:05 +01:00
Veljko 0ae2110cd8 Update test to avoid conflict 2021-01-15 18:27:40 +01:00
Ron Rennick 85a03584df
Merge pull request #28665 from woocommerce/e2e-shopper-checkout-apply-coupon
Add new e2e test shopper checkout apply coupon
2021-01-15 13:27:28 -04:00
Ron Rennick 3950f61f8f fix merge conflict 2021-01-15 12:52:00 -04:00
Claudio Sanches e698ed72fd
Merge pull request #28801 from liquidweb/refactor/shipping-zone-read
Refactor the WC_Shipping_Zone_Data_Store::read() method
2021-01-15 12:58:36 -03:00
Veljko V cce8983f14
Update test case to avoid conflict with master 2021-01-15 16:41:26 +01:00
Ron Rennick 57d8a00682
Merge pull request #28684 from woocommerce/fix/28682
introduce evalAndClick() E2E utility function
2021-01-14 09:41:10 -04:00
vedanshujain 2dce182cf8 Add unit tests for review count methods. 2021-01-14 18:31:02 +05:30
Néstor Soriano b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Nestor Soriano 8b0bd248d6 Attach hook for adjust_download_permissions from within init_hooks
The DownloadPermissionsAdjuster class hooks to adjust_download_permissions
from within its init method. However this method is executed only
if the class is resolved, otherwise the hooks doesn't get attached
and then the scheduled action is not serviced.

To solve this, the class is resolved from WooCommerce::init_hooks.
This requires a change in DownloadPermissionsAdjuster::init
to use wc_get_container()->get( LegacyProxy::class )->get_instance_of
instead of WC()->get_instance_of, since WC() can't be used from
WooCommerce::construct (which invokes init_hooks).
2021-01-14 11:40:11 +01:00
Veljko V d1150b25dc
Update changelog to include added parameter 2021-01-13 19:34:46 +01:00
Ron Rennick b477cb8d3a
only activate WooCommerce in E2E initialization (#28588)
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Nestor Soriano 2ec002defa Add unit tests for DownloadPermissionsAdjuster::adjust_download_permissions 2021-01-13 12:11:15 +01:00
Steve Grunwell e32dd6c4d3 Add a new WC_Shipping_Zone_Data_Store_CPT_Test class to support the refactoring of WC_Shipping_Zone_Data_Store_CPT::read() 2021-01-12 18:26:00 +00:00
budzanowski a283433f4d Add block utils unit tests. 2021-01-12 14:41:55 +01:00
Nestor Soriano 2d83db8b66 Add tests for DownloadPermissionsAdjuster::maybe_schedule_adjust_download_permissions
Also replace direct invocations of functions with usages of the
LegacyProxy whenever needed, and code style ajustments.
2021-01-12 12:07:38 +01:00
Nestor Soriano afe7bdc6b3 Add a test for the added functionality of LegacyProxy. 2021-01-12 10:16:00 +01:00
Veljko V 760a879cb9 Fix white spaces issue 2021-01-11 16:45:31 +01:00
Veljko V 8b85a73977 Fix white spaces issue 2021-01-11 16:40:40 +01:00
Veljko V 633251009b Update test to include lower case method 2021-01-11 16:34:10 +01:00
Veljko V 2e8b6cb0f1 Update test to include lower case method 2021-01-11 16:31:47 +01:00
Veljko 5ceda17664 Update code to be more concise 2021-01-09 18:53:12 +01:00
Veljko 2cf971486e Update code to be more concise 2021-01-09 18:49:59 +01:00
Ron Rennick 20a6e3b2ed merge master 2021-01-08 15:55:59 -04:00
Roy Ho d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
Add protective check to make sure WC()->session is initialized before  loading the data store.
2021-01-08 07:55:35 -08:00
Ron Rennick 5f7b71c543 update readme and package change log 2021-01-08 15:04:47 +01:00